SQLite INTERSECT and EXCEPT
INTERSECT
INTERSECT returns only the rows that are in the results of both SELECT statements.
This example returns the cities that have both customers and suppliers:
EXCEPT
EXCEPT returns the rows from the first SELECT that are not in the result of the second SELECT.
This example returns the cities that have customers, but no suppliers:
Like UNION, both statements must have the same number of columns, and duplicate rows are removed.