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/nightly/srvswint2/q0008.sql
2016-01-06 14:08:59 -06:00

42 lines
1.2 KiB
SQL

-- Miscellanous queries with distinct.
-- Dummy queries always included.
select now();
select now();
select calflushcache();
-- q0008.1
select count(l_linenumber) from lineitem where l_shipdate <= '1992-05-15' and l_quantity <= 4;
select calgetstats();
select now();
-- q0008.2
select distinct l_linenumber from lineitem where l_shipdate <= '1992-05-15' and l_quantity <= 4;
select calgetstats();
select now();
-- q0008.3
select distinct l_linenumber from lineitem where l_shipdate <= '1992-08-15' and l_quantity <= 8;
select calgetstats();
select now();
-- q0008.4
select distinct l_linenumber, l_shipmode from lineitem where l_shipdate <= '1992-03-15' and l_quantity <= 8;
select calgetstats();
select now();
-- q0008.5
select distinct l_linenumber, l_shipmode from lineitem where l_shipdate <= '1992-03-15' and l_quantity <= 8;
select calgetstats();
select now();
-- q0008.6
select l_shipmode, count(distinct l_partkey) from lineitem where l_shipdate <= '1991-03-15' and l_quantity <= 8 group by 1;
select calgetstats();
select now();
-- q0008.7
select l_shipdate, count(distinct l_orderkey), count(*) from lineitem where l_shipdate <= '1992-01-12' group by 1;
select calgetstats();
select now();