Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 The Oracle UNION Operator      [Return To Index] Jump to:  
  Looking for the original pages? (formerly called "Morgan's Library") You can find them here.

Term: UNION

Definition:
The UNION operator is used to combine the result-set of two or more SELECT statements.

UNION Requirements:

  • Each SELECT statement within the UNION must have the exact same number of columns
  • The columns must also have similar data types.
  • The columns in each SELECT statement must be in the exact same order.

Example Syntax:

SELECT column_name(s) FROM table1
UNION
SELECT column_name(s) FROM table2;



Related Links:
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 209 users online    © 2009 psoug.org
PSOUG LOGIN
Username: 
Password: 
Forgot your password?