mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
8 lines
222 B
SQL
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;
|