Guest User

Untitled

a guest
Jan 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. select
  2. EXTRACT(month FROM create_date), count(*)
  3. from
  4. anf_service_request
  5. where
  6. demo_sr_flag = 0
  7. and create_date between '01-SEP-2017' and '31-DEC-2017'
  8. and EXTRACT(year FROM create_date) in (2017)
  9. group by
  10. EXTRACT(month FROM create_date);
  11.  
  12. SELECT COUNT (*)
  13. FROM anf_service_request
  14. WHERE demo_sr_flag = 0 AND create_date <='31-DEC-2017';
  15.  
  16. select
  17. EXTRACT(month FROM create_date), count(*)
  18. from
  19. reg_device_registration
  20. where
  21. create_date between '01-SEP-2017' and '31-DEC-2017'
  22. and EXTRACT(year FROM create_date) in (2017)
  23. group by
  24. EXTRACT(month FROM create_date);
  25.  
  26. select count(*)
  27. from reg_device_registration
  28. where CREATE_DATE <= '31-DEC-2017';
Add Comment
Please, Sign In to add comment