I need to run a query the contents of two identical tables on two DB schemas, whose ORACLE_SID are set to set1 and set2
questions-
1) If I set ORACLE_SID to set1 on UNIX command prompt and lauch SQL Plus, how could I refer to table1 in set2?
2) There are many fields in the table, and I need to run a query of format
(Syntax is incorrect)
Could this query by optimized to speed things up a bit??
questions-
1) If I set ORACLE_SID to set1 on UNIX command prompt and lauch SQL Plus, how could I refer to table1 in set2?
2) There are many fields in the table, and I need to run a query of format
(Syntax is incorrect)
Code:
select * from table1 where table1.pk=set2.table1.pk AND table1.field1<>set2.table1.field1 AND table1.field2<>set2.table1.field2 AND
table1.field3<>set2.table1.field3 AND
etc etc.
Could this query by optimized to speed things up a bit??