Advertisement
psi_mmobile

Untitled

Mar 4th, 2021
1,258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.58 KB | None | 0 0
  1. SELECT VOcDayAggregRun.FLAG_NAME,
  2.   VOcDayAggregRun.COMPANY_NAME,
  3.   VOcDayAggregRun.CAT_VEHICLE_NAME,
  4.   VOcDayAggregRun.CAT_PERSON_NAME,
  5.   VOcDayAggregRun.FROM_DATE,
  6.   VOcDayAggregRun.TO_DATE,
  7.   VOcDayAggregRun.START_TIME_STR,
  8.   VOcDayAggregRun.STOP_TIME_STR,
  9.   VOcDayAggregRun.START_TIME,
  10.   VOcDayAggregRun.STOP_TIME,
  11.   VOcDayAggregRun.DURATION,
  12.   VOcDayAggregRun.NBR_ACTIVE_VEHICLE,
  13.   VOcDayAggregRun.NBR_VD_DAY,
  14.   VOcDayAggregRun.NBR_ACTIVE_PERSON,
  15.   VOcDayAggregRun.NBR_PD_DAY,
  16.   VOcDayAggregRun.ERROR_MESSAGE,
  17.   VOcDayAggregRun.OPERATION_CENTER_ID,
  18.   VOcDayAggregRun.VEHICLE_CATEGORY_NAME,
  19.   VOcDayAggregRun.PERSON_CATEGORY_NAME,
  20.   VOcDayAggregRun.VEHICLE_FILTER,
  21.   VOcDayAggregRun.PERSON_FILTER,
  22.   VOcDayAggregRun.OC_DAY_AGGREG_RUN_ID,
  23.   VOcDayAggregRun.OC_DAY_AGGREG_RUN_STATUS_ID,
  24.   VOcDayAggregRun.POI_CATEGORY_NAME,
  25.   UPPER(VOcDayAggregRun.COMPANY_NAME
  26.   || ' '
  27.   || VOcDayAggregRun.CAT_VEHICLE_NAME
  28.   || ' '
  29.   || VOcDayAggregRun.CAT_PERSON_NAME
  30.   || ' '
  31.   || VOcDayAggregRun.ERROR_MESSAGE
  32.   || ' '
  33.   || VOcDayAggregRun.VEHICLE_CATEGORY_NAME
  34.   || ' '
  35.   || VOcDayAggregRun.PERSON_CATEGORY_NAME
  36.   || ' '
  37.   || VOcDayAggregRun.POI_CATEGORY_NAME) ID_STRING
  38. FROM V_OC_DAY_AGGREG_RUN VOcDayAggregRun
  39. WHERE VOcDayAggregRun.START_TIME >= ? --param fromDate
  40. AND   VOcDayAggregRun.START_TIME <= ? --param toDate
  41. AND (?                                 = 'true' --param isOfAdmin
  42. OR VOcDayAggregRun.OPERATION_CENTER_ID = ?) --param operationCenterId
  43. AND (?                                 = 'false' --param showExceptionsOnly
  44. OR VOcDayAggregRun.FLAG_NAME          != 'green')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement