ClickHouse/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql
Nikolai Kochetov 064facd8de Updated test.
2018-10-05 10:43:58 +03:00

16 lines
471 B
SQL

create database if not exists test;
drop table if exists test.t;
drop table if exists test.s;
create table test.t(a Int64, b Int64, c String) engine = TinyLog;
insert into test.t values(1,1,'a'),(2,2,'b');
create table test.s(a Int64, b Int64, c String) engine = TinyLog;
insert into test.s values(1,1,'a');
select t.* from test.t all left join test.s on (s.a = t.a and s.b = t.b) where s.a = 0 and s.b = 0;
drop table if exists test.t;
drop table if exists test.s;