1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00
Files

11 lines
307 B
Plaintext

USE ssb1;
select sum(lo_extendedprice*lo_discount) as revenue
from dateinfo, lineorder # changed order
where lo_orderdate = d_datekey
and d_yearmonth = 'Jan1994'
and lo_orderdate between 19940101 and 19940131
and lo_discount between 4 and 6
and lo_quantity between 26 and 35;
revenue
98714004603.0000