Home Forums Article Discussions Article Discussions by Author Discuss content posted by Gary Chinn Select unmatched data from two columns RE: Select unmatched data from two columns
Paul White
SSC Guru
Points: 150467
More actions
November 25, 2012 at 8:27 pm
#1562067
I like this way of expressing the solution:
SELECT t1.ID FROM dbo.T1 AS t1
UNION
SELECT t2.ID FROM dbo.T2 AS t2
EXCEPT
INTERSECT
SELECT t2.ID FROM dbo.T2 AS t2;
Paul WhiteSQLPerformance.comSQLkiwi blog@SQL_Kiwi