MySQL Unions
May 25th, 2010
2 comments
A union is a type of join which allows you to glue two or more separate SELECT queries into a single result set. The structure of each query needs to be the same, meaning that the number of columns and their data types should match for all queries used in the union, and the column names or aliases from the first query determine the names of the final result columns.
Read more…