QUESTION POSED ON: 25 January 2008
Is there a way of joining two tables to return only non-matching rows?
For example, Table1 and Table2 have an identical structure and contain only
two columns:
Table1
ID Name
1 John
2 Philip
Table2
ID Name
1 John
3 Andy
The query should return only the following rows:
ID Name
2 Philip
3 Andy
Currently I am using Unions and NOT IN clause. Is there another way?
|