Advertisement
psi_mmobile

Untitled

Jun 29th, 2021
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. select fu.remote_unit_id, count(et.event_Type_id)
  2. from gui_users gu, operation_center oc, vehicle_data vd1, remote_unit ru, fixed_unit fu,
  3. event_type et, oc_event_type ocet, str, person_data pd, person
  4. where gu.operation_center_id = oc.operation_center_id
  5. --and vd1.vehicle_id is null
  6. and vd1.remote_unit_id = ru.remote_unit_id
  7. and fu.remote_unit_id = ru.remote_unit_id
  8. and vd1.event_type_id = et.event_type_id
  9. and ocet.operation_center_id = oc.operation_center_id
  10. and ocet.event_type_id = et.event_type_id
  11. and ocet.str_id = str.str_id
  12. and gu.language = str.language
  13. and vd1.vehicle_data_id = pd.vehicle_data_id(+)
  14. and pd.person_id = person.person_id(+)
  15. AND touserdate(vd1.gps_full_date,oc.timezone) >= sysdate - 30
  16. AND touserdate(vd1.gps_full_date,oc.timezone) <= sysdate
  17. and gu.gui_user_id=101001
  18. and et.event_type_id = 119
  19. group by fu.remote_unit_id
  20. order by 2 desc;
  21.  
  22. select * from remote_unit
  23. where remote_unit_id =170186;
  24.  
  25. select * from fixed_unit
  26. where remote_unit_id = 170186;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement