ClickHouse/tests/queries/0_stateless/02131_remove_columns_in_subquery.sql

2 lines
131 B
SQL

select count(1) from (SELECT 1 AS a, count(1) FROM numbers(5));
select count(1) from (SELECT 1 AS a, count(1) + 1 FROM numbers(5));