Comment sélectionner des valeurs distinctes de 2 tables avec tri dans une requête?

J'ai

  • table1 : country, theOrderColumn1
  • table2 : country, theOrderColumn2

Je veux rejoindre DISTINCTES country à partir de ces deux états:

SELECT DISTINCT `country` FROM `table1` ORDER BY `theOrderColumn1`

et

SELECT DISTINCT `country` FROM `table2` ORDER BY `theOrderColumn2`

Exemple:

table1 (country, theOrderColumn1): (uk, 1), (usa, 2)
table2 (country, theOrderColumn2): (france, 1), (uk, 2)

Je veux ce résultat:

france
uk
usa

OriginalL'auteur ali | 2011-09-28