You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
chore(codestyle): MCOL-5405: repace windows CRLF with virtious linux one
This commit is contained in:
committed by
Leonid Fedorov
parent
2e61c9909b
commit
13b23e8510
@ -8,20 +8,20 @@
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
USE ssb1;
|
||||
# Q4.2
|
||||
select d_year, s_nation, p_category,
|
||||
sum(lo_revenue - lo_supplycost) as profit
|
||||
from customer, supplier, part, dateinfo, lineorder # changed order
|
||||
where lo_custkey = c_custkey
|
||||
and lo_suppkey = s_suppkey
|
||||
and lo_partkey = p_partkey
|
||||
and lo_orderdate = d_datekey
|
||||
and c_region = 'AMERICA'
|
||||
and s_region = 'AMERICA'
|
||||
and (d_year = 1997 or d_year = 1998)
|
||||
and lo_orderdate between 19970101 and 19981231 # added matching predicate
|
||||
and (p_mfgr = 'MFGR#1'
|
||||
or p_mfgr = 'MFGR#2')
|
||||
group by d_year, s_nation, p_category
|
||||
order by d_year, s_nation, p_category;
|
||||
|
||||
# Q4.2
|
||||
select d_year, s_nation, p_category,
|
||||
sum(lo_revenue - lo_supplycost) as profit
|
||||
from customer, supplier, part, dateinfo, lineorder # changed order
|
||||
where lo_custkey = c_custkey
|
||||
and lo_suppkey = s_suppkey
|
||||
and lo_partkey = p_partkey
|
||||
and lo_orderdate = d_datekey
|
||||
and c_region = 'AMERICA'
|
||||
and s_region = 'AMERICA'
|
||||
and (d_year = 1997 or d_year = 1998)
|
||||
and lo_orderdate between 19970101 and 19981231 # added matching predicate
|
||||
and (p_mfgr = 'MFGR#1'
|
||||
or p_mfgr = 'MFGR#2')
|
||||
group by d_year, s_nation, p_category
|
||||
order by d_year, s_nation, p_category;
|
||||
|
||||
|
Reference in New Issue
Block a user