Posts Tagged ‘DBA’

Compare two tables in Oracle

Posted: July 30, 2015 in HowTo
Tags: , ,

Use the following SQL to compare two tables in Oracle

-- rows in table1 that are not in table2
(
  select * from  
    minus
  select * from 
) 
union all
-- rows in table2 that are not in table1
( 
  select * from  
    minus
  select * from 
) 
Advertisements