mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +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;
|