ClickHouse/dbms/tests/queries/0_stateless/00098_4_union_all.sql
2016-06-07 11:23:15 +03:00

8 lines
222 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'
UNION ALL
SELECT value AS val FROM data2014 WHERE name = 'Dennis')
ORDER BY val ASC;