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/srvswdev11/test102/q5.2.1.sql
2016-01-06 14:08:59 -06:00

15 lines
441 B
SQL
Executable File

-- Reworked to use lineitem instead of demographics200.
select n_name, sum(l_quantity), sum(l_extendedprice),
max(l_quantity),
sum(l_partkey),
avg(l_suppkey),
min(l_extendedprice),
max(l_discount),
count(l_shipdate),
avg(l_tax)
from nation, lineitem
where l_suppkey between 10 and 70
and n_regionkey = 1
and n_nationkey = l_linenumber
group by n_name order by n_name;