mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +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;
|