ClickHouse/dbms/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.sql
2020-02-20 16:33:14 +03:00

14 lines
307 B
SQL

drop table if exists ax;
drop table if exists bx;
create table ax (A Int64, B Int64) Engine = Memory;
create table bx (A Int64) Engine = Memory;
insert into ax values (1, 1), (2, 1);
insert into bx values (2), (4);
select * from bx, ax where ax.A = bx.A and ax.B in (1,2);
drop table ax;
drop table bx;