Mister Miyagi
12/06/2021, 2:00 PMCD
12/06/2021, 2:21 PMselect column1, column2
from table1
union
select column1, column2
from table2
You can also use UNION ALL
. UNION
removes duplicates, UNION ALL
does not. Note that the columns in the unions must be the same data types.