Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 408 Bytes

README.md

File metadata and controls

18 lines (17 loc) · 408 Bytes

hands-on

hands-on project solving the Shipping Priority Query (Q3) of the TPC-H benchmark partially.

query

select l.ORDERKEY, sum(EXTENDEDPRICE*(1-DISCOUNT)) as revenue
  from
    ORDERS o,
    LINEITEM l
    where
      l.ORDERKEY = o.ORDERKEY
      and ORDERDATE < date '[DATE]'
      and SHIPDATE > date '[DATE]'
      group by
        l.ORDERKEY
        order by
          revenue desc