INTERSECT¶
The INTERSECT
operator is used to calculate the intersection of
two SELECT
statements:
Each SELECT
statement within the INTERSECT
clause must have the
same number of columns. The columns must also have similar data
types. The output of the INTERSECT
is the set of rows which are
present in both of the input SELECT statements. The INTERSECT
operator selects only the distinct values from the inputs.