SELECT shopy as y FROM shops
UNION ALL
SELECT y FROM infra
ORDER BY y ASC
pro Sestupné pořadí napište Pořadí podle y DESC.
Demo na http://sqlfiddle.com/#!2/62884/1
SELECT shopy as y FROM shops
UNION ALL
SELECT y FROM infra
ORDER BY y ASC
pro Sestupné pořadí napište Pořadí podle y DESC.
Demo na http://sqlfiddle.com/#!2/62884/1