Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. -- order id that changed from not canceled to is canceled because order state is sent to warehouse and created at is more than 7 days
  2. -- order id: 3486372
  3. -- user id: 1122144
  4.  
  5. -- order id that has not changed because the order state is captured
  6. -- order id: 3047846
  7. -- user id: 1716530
  8.  
  9. -- order - - Shows that is_canceled is now true
  10. SELECT * FROM core.orders where id = 3486372
  11. SELECT * FROM core.orders where user_id = 1710281 order by created_at
  12.  
  13. -- order_type - - Column order_type and order_type_detail changed from Existing Customer Manual to Cancel
  14. -- NOTE: even though it is a canceled order, starts free trial is TRUE -- should this be the case
  15. SELECT * FROM dtc.order_types WHERE order_id = 3486372
  16.  
  17. -- fact_order - - Check that naming changed from canceled --> is_canceled and from False --> True
  18. SELECT * FROM dw.fact_order where order_id = 3486372
  19.  
  20. -- order attributes - - Check that the new column, is_canceled, is apart of the order_attributes table and is accurate
  21. -- is_canceled = True (changed)
  22. SELECT * FROM analytics.order_attributes where order_id = 3486372
  23. -- is_canceled = False (unchanged)
  24. SELECT * FROM analytics.order_attributes where order_id = 3047846
  25.  
  26. -- user_order_stats - - Check that the num_orders has changes from (production) -> (development)
  27. -- num_orders went from 4 (production) --> 3 (development)
  28. SELECT * FROM dtc.user_order_stats where user_id = 1710281
  29. -- num_orders went from 1 (production) --> 1 (development)
  30. SELECT * FROM dtc.user_order_stats where user_id = 3047846
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement