select * from TABLA1
minus
select * from TABLA2) -- Rows in A that are not in TABLA2
union all
(
select * from TABLA2
minus
select * from TABLA1
) -- rows in B that are not in TABLA1
select * from TABLA1
minus
select * from TABLA2) -- Rows in A that are not in TABLA2
union all
(
select * from TABLA2
minus
select * from TABLA1
) -- rows in B that are not in TABLA1