q96.sql 593 B

12345678910111213141516171819
  1. --!syntax_pg
  2. --TPC-DS Q96
  3. -- start query 1 in stream 0 using template ../query_templates/query96.tpl
  4. select count(*)
  5. from plato.store_sales
  6. ,plato.household_demographics
  7. ,plato.time_dim, plato.store
  8. where ss_sold_time_sk = time_dim.t_time_sk
  9. and ss_hdemo_sk = household_demographics.hd_demo_sk
  10. and ss_store_sk = s_store_sk
  11. and time_dim.t_hour = 8
  12. and time_dim.t_minute >= 30
  13. and household_demographics.hd_dep_count = 5
  14. and store.s_store_name = 'ese'
  15. order by count(*)
  16. limit 100;
  17. -- end query 1 in stream 0 using template ../query_templates/query96.tpl