query96.sql 435 B

12345678910111213141516
  1. select count(*) as c
  2. from store_sales
  3. ,household_demographics
  4. ,time_dim, store
  5. where store_sales.ss_sold_time_sk = time_dim.t_time_sk
  6. and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk
  7. and store_sales.ss_store_sk = store.s_store_sk
  8. and time_dim.t_hour = 8
  9. and time_dim.t_minute >= 30
  10. and household_demographics.hd_dep_count = 5
  11. and store.s_store_name = 'ese'
  12. order by c
  13. limit 100;