ClickHouse/dbms/tests/queries/0_stateless/00098_2_union_all.sql

7 lines
159 B
SQL

SELECT val FROM
(SELECT value AS val FROM data2013 WHERE name = 'Alice'
UNION ALL
SELECT value AS val FROM data2014 WHERE name = 'Alice')
ORDER BY val ASC;