У меня есть
country
, theOrderColumn1
country
, theOrderColumn2
Я хочу соединить DISTINCT country
из этих двух операторов SELECT:
SELECT DISTINCT `country` FROM `table1` ORDER BY `theOrderColumn1`
and
SELECT DISTINCT `country` FROM `table2` ORDER BY `theOrderColumn2`
Example:
table1 (country, theOrderColumn1): (uk, 1), (usa, 2)
table2 (country, theOrderColumn2): (france, 1), (uk, 2)
Мне нужен такой результат:
france
uk
usa