T-SQL 101: 113 Finding Common Data with INTERSECT
Another interesting operator is INTERSECT. We saw how EXCEPT takes a set of rows and removes any duplicates, and removes any rows that are also contained in a second set of rows.
INTERSECT is similar in the way it works, but it only returns the rows that are common to both row sets.
You could replace an INTERSECT statement with a WHERE EXISTS clause but if you need to deal with NULLable columns, and as the number of columns increases, you can see that INTERSECT becomes quite an elegant solution.
2025-02-10