1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/subselect/unittest/.svn/text-base/complex_semijoin.sql.svn-base
2016-01-06 14:08:59 -06:00

8 lines
716 B
Plaintext

select * from sub1 where exists (select * from sub2 where sub1.c1 = sub2.c1 and sub2.c2 > 1) order by 1;
select * from sub1 where not exists (select * from sub5 where sub1.c1 = sub5.c1 and sub5.c2 > 1) order by 1, 2, 3, 4, 5, 6;
select * from sub1 where c1 in (select c1 from sub2 where sub1.c1 < sub2.c3) order by 1;
select * from sub1 where c1 in (select c1 from sub2 where sub1.c3 = sub2.c3) order by 1;
select * from sub1 where c1 not in (select c1 from sub2 where sub1.c3 = sub2.c3) order by 1;
select * from sub1 where c1 not in (select c1 from sub2 where sub1.c3 < sub2.c3) order by 1;
select * from sub1, sub3 where sub1.c1 in (select c1 from sub2 where sub1.c2 >= sub2.c3) and sub1.c2 = sub3.c2 order by 1;