Compare Table

(select * from a

MINUS

select * from b)

UNION ALL

(select * from b

MINUS

select * from a);