ClickHouse/tests/queries/0_stateless/00725_join_on_bug_4.sql

14 lines
520 B
MySQL
Raw Normal View History

drop table if exists t_00725_4;
drop table if exists s_00725_4;
2018-10-02 18:14:37 +00:00
create table t_00725_4(a Int64, b Int64, c String) engine = TinyLog;
insert into t_00725_4 values(1,1,'a'),(2,2,'b');
create table s_00725_4(a Int64, b Int64, c String) engine = TinyLog;
insert into s_00725_4 values(1,1,'a');
2018-10-02 18:14:37 +00:00
select t_00725_4.* from t_00725_4 all left join s_00725_4 on (s_00725_4.a = t_00725_4.a and s_00725_4.b = t_00725_4.b) where s_00725_4.a = 0 and s_00725_4.b = 0;
2018-10-02 18:14:37 +00:00
drop table if exists t_00725_4;
drop table if exists s_00725_4;