July 2002
Beginner
424 pages
9h 30m
English
An EXCEPT operation, also called a difference, combines the results of two queries into a single result that comprises the rows that belong only to the first query. To contrast INTERSECT and EXCEPT, A INTERSECT B contains rows from table A that are duplicated in table B, whereas A EXCEPT B contains rows from table A that aren’t duplicated in table B. Differences have the same restrictions as unions; see “Combining Rows with UNION” earlier in this chapter.
select_statement1 EXCEPT select_statement2;
Read now
Unlock full access