ClickHouse/tests/queries/0_stateless/00225_join_duplicate_columns.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

10 lines
392 B
SQL

select b from (select 1 as a, 42 as c) js1 any left join (select 2 as b, 2 as b, 41 as c) js2 using c;
select b from (select 1 as a, 42 as c) js1 any left join (select 2 as b, 2 as b, 42 as c) js2 using c;
select c,a,a,b,b from
(select 1 as a, 1 as a, 42 as c group by c order by a,c) js1
any left join
(select 2 as b, 2 as b, 41 as c group by c order by b,c) js2
using c
order by b;