1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-08 03:42:19 +03:00
Files
mariadb-columnstore-engine/utils/scenarios/perf/source/iteration17queries/Deferred/q5.4.1.original.sql
2016-01-06 14:08:59 -06:00

10 lines
297 B
SQL
Executable File

select to_char(l_shipdate,'yyyy-mm'), sum(l_extendedprice), avg(p_retailprice)
from lineitem, part
where l_shipdate between '1993-01-01' and '1994-06-30'
and l_partkey = p_partkey
and p_retailprice >= 2095
and p_size <= 5
group by rollup( to_char(l_shipdate,'yyyy-mm'))
order by 1,2;