Advertisement
psi_mmobile

Untitled

Feb 22nd, 2021
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. select
  2. OPERATION_CENTER_ID,
  3. GUI_USER_ID,
  4. PERSON_ID,
  5. PERSON_DATA_ID,
  6. om_short_name,
  7. om_name,
  8. om_color,
  9. VEHICLE_DATA_ID,
  10. EVENT_DATE,
  11. EVENT_DATE_STR,
  12. EVENT_TYPE_HARD,
  13. EVENT_NAME,
  14. VEHICLE_ID,
  15. FIXED_UNIT_ID,
  16. VEHICLE_NAME,
  17. GRAPHICAL_SYMBOL,
  18. EVENT_TYPE,
  19. aggreg_event_type,
  20. aggreg_graphical_symbol,
  21. TOTAL_KM,
  22. TOTAL_HR,
  23. VEHICLE_DATA_RG_ADRESS,
  24. VEHICLE_DATA_SPEED,
  25. POI_NAME,
  26. POI_ID_LIST,
  27. WGS84_LATITUDE,
  28. WGS84_LONGITUDE,
  29. COMMENTS,
  30. pass_person_id,
  31. pass_last_name,
  32. pass_first_name,
  33. pass_poi_id,
  34. pass_home_wgs84_latitude,
  35. pass_home_wgs84_longitude,
  36. vehicle_numberplate,
  37. vehicle_company_nr,
  38. person_mframe_status,
  39. GRAPHICAL_SYMBOL_MFRAME,
  40. ref_number,
  41. event_type_id
  42. from V_ADF_PERSON_PD_HISTORY
  43. where PERSON_ID = 206310
  44. and gui_user_id=107358
  45. and ((7 is null and EVENT_DATE > TRUNC(SYSDATE) and EVENT_DATE < TRUNC(SYSDATE+1)) or (EVENT_DATE >= TOUTCDATE(sysdate-11,'Europe/Brussels') and EVENT_DATE <= TOUTCDATE(sysdate-5,'Europe/Brussels')))
  46. and ('true' != 'true' or AGGREG_EVENT_TYPE is not null)
  47. ORDER BY event_date asc, person_data_id asc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement