Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. (some_manipulation_part), ifact as
  2. ( select date, sales_count from final_result_set
  3. ) select date_part('h',date )) as h ,
  4. date_part('dow',date )) as day_of_week ,
  5. count(sales_count)
  6. from final_result_set
  7. group by h, dow.
  8.  
  9. (some_manipulation_part), ifact as
  10. ( select date, sales_count from final_result_set
  11. ) select date_part('h',date )) as h ,
  12. date_part('dow',date )) as day_of_week ,
  13. avg(sales_count)
  14. from final_result_set
  15. group by h, dow.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement