Hi,
You can use the union and minus .
Union gives those those which are in both the tables.
Eg:
(select * from table1) Union (Select * from table2)
TABLE1 TABLE2 RESULT
------------ ------------ ---------------
1 2 1
2 3 2
3
If you use the minus, u can get those rows in one table which are not in the other.
eg:
(select * from table1) minus (select * from table2)
will give result set as 1
(select * from table1) minus (select * from table2) gives 3
If you take the union of the two queries above you will get those rows which are only in one of the two tables
i.e;
((select * from table1) minus (select * from table2))
UNION
((select * from table1) minus (select * from table2))
gives 1and 3
Hope this was what you needed..
Cheers