1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

22 lines
532 B
Plaintext

#
# Test case migrated from regression test suite:
# ./mysql/queries/working_ssb_compareLogOnly/ssb/q2.2.mod.sql
#
# Author: Susil, susil.behera@mariadb.com
#
-- source ../include/have_columnstore.inc
USE ssb1;
# Q2.2
select sum(lo_revenue), d_year, p_brand1
from part, supplier, dateinfo, lineorder # changed order
where lo_orderdate = d_datekey
and lo_partkey = p_partkey
and lo_suppkey = s_suppkey
and p_brand1 between 'MFGR#2221'
and 'MFGR#2228'
and s_region = 'ASIA'
group by d_year, p_brand1
order by d_year, p_brand1;