tpch_query6.sql 207 B

123456789
  1. select
  2. sum(l_extendedprice * l_discount) as revenue
  3. from
  4. lineitem
  5. where
  6. l_shipdate >= '1993-01-01'
  7. and l_shipdate < '1994-01-01'
  8. and l_discount between 0.06 - 0.01 and 0.06 + 0.01
  9. and l_quantity < 25;