Contents Index The ROLLUP operation: adding summary information to GROUP BY queries Combining sets with the UNION operation

ASA SQL User's Guide
  Summarizing, Grouping and Sorting Query Results

Performing set operations on query results with UNION, INTERSECT, and EXCEPT


The operators described in this section carry out set operations on the results of two or more queries. While many of the operations can also be carried out using operations in the WHERE clause or HAVING clause, there are some operations that are very difficult to carry out in any way other than using these set-based operators. For example:

For more information, see EXCEPT operation, INTERSECT operation, and UNION operation.


Combining sets with the UNION operation
Using EXCEPT and INTERSECT
Rules for set operations
Set operators and NULL

Contents Index The ROLLUP operation: adding summary information to GROUP BY queries Combining sets with the UNION operation