INTERSECT compares corresponding columns from its input queries, so each SELECT must return the same number of columns and the corresponding data types must be compatible. Column names need not match, and NULL values are included in set comparison; in SQL Server, two NULL values are treated as equal for determining distinct rows.
Community Discussion