Difference
The difference between two sets of rows produces
a table that contains rows in the first set that are not also in the
second set. Use the keywords NOT EXISTS or NOT IN to introduce subqueries
that show the difference between two sets. The following figure illustrates
the difference set operation.
The following query is an example of a nested SELECT statement
that shows the difference between the stock and items tables.
The result contains all the elements from only the first
set, which returns 17 rows.