Tutorials
UNION

The union clause places two serarate queries together forming one table. A union works best when using two tables with similar columns because each cloumn must have the same data type.

select field1, field2, . field_n from tables
UNION 
select field1, field2, . field_n from tables;
UNION ALL

The UNION ALL query allows you to combine the result sets of 2 or more "select" queries. It returns all rows (even if the row exists in more than one of the "select" statements).

Each SQL statement within the UNION ALL query must have the same number of fields in the result sets with similar data types.

The syntax for a UNION ALL query is:

select field1, field2, . field_n from tables
UNION ALL
select field1, field2, . field_n from tables;

Example #1 The following is an example of a UNION ALL query:
select supplier_id from suppliers
UNION ALL
select supplier_id from orders;
SQL
Database Indexes
Create Table
SQL Select
SQL Alias
SQL Insert
SQL Update
SQL Delete
SQL Alter
SQL group by & having
SQL Subqueries
SQL Exists, All & Any
SQL Joins
SQL Aggregate Functions
SQL Drop
SQL Union & All
Constraints
Create Views
SQL Transactions