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

12 lines
379 B
SQL
Executable File

-- Reworked to use lineitem instead of demographics200.
select count(*),max(l_quantity),max(l_extendedprice),max(l_discount),
max(l_tax),max(l_shipinstruct),max(l_commitdate),max(l_receiptdate)
from lineitem
where l_orderkey < 7009
and l_suppkey < 70000
and l_linenumber < 5
and l_partkey < 7000
and l_tax < 70500
and l_extendedprice < 70500
and l_discount < 28 ;