I've 2 tables where I want to retrieve the id and name from and merge them:
table1:
IDtable1-nametable1
1 - 578445
2 - 454545
3 - 554887
table2:
IDtable2-nametable2
X1 - 544512
X2 - 445775
The result should look like (order by nametable)
X2 - 445775
2 - 454545
X1 - 544512
3 - 554887
1 - 578445
(this result will be used for filling a combobox).
I may excecute 2 queries, put the results in an array and then order it, but
I'm sure there is a better way in MySQL, but I couldn't find it.
Bob