ClickHouse/tests/queries/0_stateless/02475_analyzer_join_tree_subquery.sql
2022-11-08 14:29:17 +01:00

8 lines
220 B
SQL

SET allow_experimental_analyzer = 1;
WITH subquery AS (SELECT sum(number) FROM numbers(10)) SELECT * FROM subquery;
SELECT '--';
WITH subquery AS (SELECT sum(number) FROM numbers(10)) SELECT (SELECT * FROM subquery);