ClickHouse/tests/queries/1_stateful/00067_union_all.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

14 lines
255 B
SQL

SELECT * FROM
(
SELECT UserID AS id, 1 AS event
FROM remote('127.0.0.{1,2}', test, hits)
ORDER BY id DESC
LIMIT 10
UNION ALL
SELECT FUniqID AS id, 2 AS event
FROM remote('127.0.0.{1,2}', test, hits)
ORDER BY id DESC
LIMIT 10
)
ORDER BY id, event;