1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-20 01:42:27 +03:00
Files
mariadb-columnstore-engine/utils/scenarios/perf/sql/110/q110.6.sql
2016-01-06 14:08:59 -06:00

9 lines
231 B
SQL

select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
from customer, orders
where c_acctbal > 9963 and c_nationkey < 5
and o_custkey = c_custkey
and o_orderdate <= '1992-11-16'
group by c_nationkey
order by 1;