ClickHouse/tests/queries/0_stateless/00725_join_on_bug_3.sql
2022-07-12 20:22:35 +02:00

15 lines
497 B
SQL

drop table if exists t_00725_3;
drop table if exists z_00725_3;
create table t_00725_3(a Int64, b Int64) engine = TinyLog;
insert into t_00725_3 values(1,1);
insert into t_00725_3 values(2,2);
create table z_00725_3(c Int64, d Int64, e Int64) engine = TinyLog;
insert into z_00725_3 values(1,1,1);
select * from t_00725_3 all left join z_00725_3 on (z_00725_3.c = t_00725_3.a and z_00725_3.d = t_00725_3.b) ORDER BY t_00725_3.a;
drop table if exists t_00725_3;
drop table if exists z_00725_3;