1
0

query84.sql 704 B

123456789101112131415161718192021
  1. -- start query 1 in stream 0 using template query84.tpl and seed 1819994127
  2. select c_customer_id as customer_id
  3. ,c_last_name || ', ' || c_first_name as customername
  4. from customer
  5. ,customer_address
  6. ,customer_demographics
  7. ,household_demographics
  8. ,income_band
  9. ,store_returns
  10. where ca_city = 'Hopewell'
  11. and c_current_addr_sk = ca_address_sk
  12. and ib_lower_bound >= 32287
  13. and ib_upper_bound <= 32287 + 50000
  14. and ib_income_band_sk = hd_income_band_sk
  15. and cd_demo_sk = c_current_cdemo_sk
  16. and hd_demo_sk = c_current_hdemo_sk
  17. and sr_cdemo_sk = cd_demo_sk
  18. order by customer_id
  19. limit 100;
  20. -- end query 1 in stream 0 using template query84.tpl