1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00
Files

11 lines
318 B
Plaintext

USE ssb1;
select sum(lo_extendedprice*lo_discount) as revenue
from dateinfo, lineorder # changed order
where lo_orderdate = d_datekey
and d_year = 1993
and lo_orderdate between 19930101 and 19931231 # added matching predicate
and lo_discount between 1 and 3
and lo_quantity < 25;
revenue
446031203850.0000