Advertisement
psi_mmobile

Untitled

Aug 20th, 2020
1,621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 2.18 KB | None | 0 0
  1. SELECT OcDayAggreg.PARENT_OC_DAY_AGGREG_ID,
  2.        OcDayAggreg.OC_DAY_AGGREG_ID,
  3.        OcDayAggreg.OPERATION_CENTER_ID,
  4.        OcDayAggreg.VEHICLE_OWNER_ID,
  5.        OcDayAggreg.VO_PERSON_CATEGORY_ID,
  6.        OcDayAggreg.VO_VEHICLE_CATEGORY_ID,
  7.        OcDayAggreg.OC_POI_CATEGORY_ID,
  8.        OcDayAggreg.DEFAULT_WORK_CODE_ID,
  9.        OcDayAggreg.DEFAULT_ADMIN_STATUS_ID,
  10.        OcDayAggreg.OC_CALENDAR_ID,
  11.        OcDayAggreg.IS_ACTIVE,
  12.        OcDayAggreg.START_DATE,
  13.        OcDayAggreg.LIMIT_TO_VD_POI_DAY,
  14.        OcDayAggreg.WORK_AREA_POI_ID,
  15.        OcDayAggreg.STOP_AREA_POI_ID,
  16.        OcDayAggreg.WORK_PERIOD_POI_ID,
  17.        OcDayAggreg.PRIVATE_STOP_AREA_POI_ID,
  18.        OcDayAggreg.WORK_PERIOD_OUT_BH_POI_ID,
  19.        OcDayAggreg.SHORT_WORK_PERIOD_POI_ID,
  20. P_GUI_USER.getCalendarName(OcDayAggreg.OC_CALENDAR_ID) OC_CALENDAR_NAME,
  21. P_GUI_USER.getOperationCenterName(OcDayAggreg.OPERATION_CENTER_ID) OPERATION_CENTER_NAME,
  22. P_POI.getPoiName(OcDayAggreg.PRIVATE_STOP_AREA_POI_ID) PRIVATE_STOP_AREA_POI_NAME,
  23. P_POI.getPoiName(OcDayAggreg.SHORT_WORK_PERIOD_POI_ID) SHORT_WORK_PERIOD_POI_NAME,
  24. P_POI.getPoiName(OcDayAggreg.STOP_AREA_POI_ID) STOP_AREA_POI_NAME,
  25. P_GUI_USER.getVehicleOwnerName(OcDayAggreg.VEHICLE_OWNER_ID) VEHICLE_OWNER_NAME, --OK
  26. P_POI.getPoiName(OcDayAggreg.WORK_AREA_POI_ID) WORK_AREA_POI_NAME,
  27. P_GUI_USER.getWorkCodeName(OcDayAggreg.DEFAULT_WORK_CODE_ID) WORK_CODE_NAME,
  28. P_POI.getPoiName(OcDayAggreg.WORK_PERIOD_OUT_BH_POI_ID) WORK_PERIOD_OUT_BH_POI_NAME,
  29. P_POI.getPoiName(OcDayAggreg.WORK_PERIOD_POI_ID) WORK_PERIOD_POI_NAME,
  30. P_GUI_USER.getPersonCategoryName(OcDayAggreg.VO_PERSON_CATEGORY_ID) VO_PERSON_CATEGORY_NAME, --OK
  31. P_GUI_USER.getVehicleCategoryName(OcDayAggreg.VO_VEHICLE_CATEGORY_ID) VO_VEHICLE_CATEGORY_NAME,
  32. P_GUI_USER.getPoiCategoryName(OcDayAggreg.OC_POI_CATEGORY_ID) OC_POI_CATEGORY_NAME, --OK
  33. P_GUI_USER.getOcAggregAdminStatusName(OcDayAggreg.DEFAULT_ADMIN_STATUS_ID) DEFAULT_ADMIN_STATUS_NAME --OK
  34. FROM OC_DAY_AGGREG OcDayAggreg
  35. WHERE OcDayAggreg.vehicle_owner_id = 100718
  36. START WITH OcDayAggreg.parent_oc_day_aggreg_id IS NULL
  37. CONNECT BY OcDayAggreg.parent_oc_day_aggreg_id = PRIOR OcDayAggreg.oc_day_aggreg_id
  38. ORDER siblings BY OcDayAggreg.start_date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement