Suppose I have two tables, t1 and t2 which are identical in layout but which may contain different data.
What\'s the best way to diff these two tables?
Try:
select distinct T1.id from TABLE1 T1 where not exists (select distinct T2.id from TABLE2 T2 where T2.id = T1.id)
With sql oracle 11g+