Stack Overflow logo (Photo credit: Wikipedia) |
SELECT A.*, B.*
FROM A
FULL JOIN B ON (A.C = B.C)
WHERE A.C IS NULL OR B.C IS NULL
Where A and B are table names; C is the common field
sql server 2005 - sql query to return differences between two tables - Stack Overflow
No comments:
Post a Comment