Posts Tagged ‘Oracle’

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

Finding Oracle version

Posted: October 3, 2010 in HowTo
Tags: , ,

To find the version of the oracle installation, run the following query after connecting to the instance

select * from v$version;