Using Set Operators

The set operators combines rows returned by two or more queries. The number of columns and the column types returned by the queries must match, although the column names may be different.

OperatorDescription
UNION ALLReturns all the rows retrieved by the queries, including duplicate rows.
UNIONReturns all non-duplicate rows retrieved by the queries.
INTERSECTReturns rows that are in both queries.
MINUSSubtracts one set of rows from another set of rows.
Home »
Oracle »
Select » 

Set Operators:
  1. Using Set Operators
  2. UNION ALL
  3. UNION
  4. INTERSECT
  5. MINUS
  6. Combining Set Operators
Related: