UNION and UNION ALL used to combine two or more query results.
UNION command selects distinct and related information from two tables which will eliminates duplicate rows.
On the other hand, UNION ALL command selects all the values from both the tables, which displays all rows.