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/negative/q3.6.sql
2016-01-06 14:08:59 -06:00

6 lines
426 B
SQL

-- not supported . no join prescribed. This will result in an N-squared problem that will run in calendar time.
select s3 from sub1 where s2 < (select max(s2) from sub5 where sub1.s1 <> sub5.s2) order by 1;
select s2, count(*) from sub5 where s2 < (select max(s2) from sub1 where sub1.s1 <> sub5.s2) group by 1 order by 1;
select count(*) from sub5 where s2 < (select max(s2) from sub2 where sub2.s1 <> sub5.s2) order by 1;