UNION ALL:
COMBINES THE RESULT OF 2 QUERY AND
DOESN'T REMOVE DUPLICATE ROWS
AND DOESN'T SORT BY FIRST COLUMN
UNION:
COMBINES THE RESULT OF 2 QUERY AND
REMOVES DUPLICATE ROWS AND
SORTS BY FIRST COLUMN
UNION ALL:
COMBINES THE RESULT OF 2 QUERY AND
DOESN'T REMOVE DUPLICATE ROWS
AND DOESN'T SORT BY FIRST COLUMN
UNION:
COMBINES THE RESULT OF 2 QUERY AND
REMOVES DUPLICATE ROWS AND
SORTS BY FIRST COLUMN
UNION: only keeps unique records
UNION ALL: keeps all records, including duplicates
SELECT City FROM student
UNION
SELECT City FROM student2
SELECT City FROM student
UNION ALL
SELECT City FROM student2
select null
union all
select null