ClickHouse/dbms/tests/queries/0_stateless/00057_join_aliases.sql
2014-07-03 00:26:34 +04:00

2 lines
173 B
SQL

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) USING n LIMIT 10