mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
9 lines
246 B
SQL
9 lines
246 B
SQL
-- Tags: ignore-order
|
|
|
|
SELECT * FROM (
|
|
SELECT number, number / 2 AS n, j1, j2
|
|
FROM system.numbers
|
|
ANY LEFT JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 10) js2
|
|
USING n LIMIT 10
|
|
) ORDER BY n;
|