Guest User

Untitled

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