Advertisement
psi_mmobile

Untitled

Nov 17th, 2020
1,169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 3.77 KB | None | 0 0
  1. SELECT s.str_value title,
  2.        osr.module_id,
  3.        osr.gui_user_id,
  4.        m.graphical_symbol,
  5.        osr.oc_scheduled_report_id,
  6.        osr.ac_named_schedule_id,
  7.        ans.hours,
  8.        ans.minutes,
  9.        ans.days,
  10.        ans.months,
  11.        ans.weekdays,
  12.        osr.email_to,
  13.        (SELECT osrp.param_value
  14.         FROM oc_sched_report_param osrp
  15.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  16.         AND osrp.param_name = 'period'
  17.        ) periode,
  18.        (SELECT osrp.param_value
  19.         FROM oc_sched_report_param osrp
  20.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  21.         AND osrp.param_name = 'report_format'
  22.        ) report_format,
  23.        (SELECT osrp.param_value
  24.         FROM oc_sched_report_param osrp
  25.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  26.         AND osrp.param_name = 'gen_gu_message'
  27.        ) buildixxMessenger,
  28.        (SELECT osrp.param_value
  29.         FROM oc_sched_report_param osrp
  30.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  31.         AND osrp.param_name = 'vehicle_owner_id'
  32.        ) vehicleOwner,
  33.        (SELECT osrp.param_value
  34.         FROM oc_sched_report_param osrp
  35.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  36.         AND osrp.param_name = 'vo_vehicle_category_id'
  37.        ) vehicleCategory,
  38.        (SELECT osrp.param_value
  39.         FROM oc_sched_report_param osrp
  40.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  41.         AND osrp.param_name = 'vehicle_id'
  42.        ) vehicle,
  43.        (SELECT osrp.param_value
  44.         FROM oc_sched_report_param osrp
  45.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  46.         AND osrp.param_name = 'oc_poi_category_id'
  47.        ) poiCategory,
  48.        (SELECT osrp.param_value
  49.         FROM oc_sched_report_param osrp
  50.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  51.         AND osrp.param_name = 'poi_id'
  52.        ) poi,
  53.        (SELECT osrp.param_value
  54.         FROM oc_sched_report_param osrp
  55.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  56.         AND osrp.param_name = 'vo_person_category_id'
  57.        ) personCategory,
  58.        (SELECT osrp.param_value
  59.         FROM oc_sched_report_param osrp
  60.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  61.         AND osrp.param_name = 'person_id'
  62.        ) person,
  63.        (SELECT osrp.param_value
  64.         FROM oc_sched_report_param osrp
  65.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  66.         AND osrp.param_name = 'oc_aggreg_admin_status_id'
  67.        ) status,
  68.        (SELECT osrp.param_value
  69.         FROM oc_sched_report_param osrp
  70.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  71.         AND osrp.param_name = 'poi_tin'
  72.        ) poiTin,
  73.          (SELECT osrp.param_value
  74.         FROM oc_sched_report_param osrp
  75.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  76.         AND osrp.param_name = 'so_transaction_status_id'
  77.        ) soTransactionStatus,
  78.        (SELECT osrp.param_value
  79.        FROM oc_sched_report_param osrp
  80.        WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  81.        AND osrp.param_name = 'showAllPpl') showAllPpl,
  82.        (SELECT osrp.param_value
  83.         FROM oc_sched_report_param osrp
  84.         WHERE osrp.oc_scheduled_report_id = osr.oc_scheduled_report_id
  85.         AND osrp.param_name = 'voGroup'
  86.        ) vo_groups
  87. FROM oc_scheduled_report osr, module m, ac_named_schedule ans, gui_users gu, str s
  88. WHERE osr.module_id = m.module_id
  89. AND osr.gui_user_id = gu.gui_user_id
  90. AND gu.gui_user_id = 101263
  91. AND m.title_str_id = s.str_id
  92. AND s.language = gu.language
  93. AND osr.ac_named_schedule_id = ans.ac_named_schedule_id
  94. ORDER BY OC_SCHEDULED_REPORT_ID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement