ClickHouse/tests/queries/0_stateless/00057_join_aliases.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
223 B
MySQL
Raw Normal View History

2022-06-07 13:59:30 +00:00
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;