In SQL SERVER, what are EXCEPT and INTERSECT?
Both Returns distinct values by comparing the results of two queries.
EXCEPT returns any distinct values from the left query that are not also found on the right query.
INTERSECT returns any distinct values that are returned by both the query on the left and right sides of the INTERSECT operand.
Read More..   [148 clicks]
Published under: SQL Server Interview Questions · · · ·