ClickHouse/dbms/tests/queries/0_stateless/00818_alias_bug_4110.sql
2019-02-11 22:14:57 +03:00

6 lines
287 B
SQL

select s.a as a, s.a + 1 as b from (select 10 as a) s;
select s.a + 1 as a, s.a as b from (select 10 as a) s;
select s.a + 1 as a, s.a + 1 as b from (select 10 as a) s;
select s.a + 1 as b, s.a + 2 as a from (select 10 as a) s;
select s.a + 2 as b, s.a + 1 as a from (select 10 as a) s;