For this you would use UNION [ALL]. Tables should not have the same column names, but you need to select the same number of columns from each, and the corresponding columns must be compatible data types
SELECT col1,col2,col3 FROM table1
UNION ALL
SELECT col1,col2,col3 FROM table2
UNION ALLit is preferable UNIONwhere there is a choice, since it can avoid the sort operation in order to get rid of duplicates.
source
share