The SQL UNION operator combines the results of two or more queries into a single result set. By default, UNION eliminates duplicate rows but UNION ALL includes duplicate rows. For UNION, the number and order of columns must match between queries and column data types must be compatible. Usually the column names from the first query are used. Examples demonstrate UNION, UNION ALL, and combining queries on the same table or with joins between tables.