Advertisement
psi_mmobile

Untitled

Sep 22nd, 2022
1,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.07 KB | None | 0 0
  1.  
  2.   CREATE OR REPLACE FORCE EDITIONABLE VIEW "OF_OWNER"."V_MOBILITY_GROUPS_V2" ("PERSON_ID", "VEHICLE_OWNER_ID", "COMPANY_NR", "DATE_DAY", "TOTAL_EUROCENT", "TOT_PASSENGER_KM", "TOT_DRIVER_WITH_P_KM", "STR") AS
  3.   SELECT "PERSON_ID",
  4.     "VEHICLE_OWNER_ID",
  5.     "COMPANY_NR",
  6.     "DATE_DAY",
  7.     "TOTAL_EUROCENT",
  8.     "TOT_PASSENGER_KM",
  9.     "TOT_DRIVER_WITH_P_KM",
  10.     "STR"
  11.   FROM v_mobility_groups_bam
  12.   UNION
  13.   SELECT "PERSON_ID",
  14.     "VEHICLE_OWNER_ID",
  15.     "COMPANY_NR",
  16.     "DATE_DAY",
  17.     "TOTAL_EUROCENT",
  18.     "TOT_PASSENGER_KM",
  19.     "TOT_DRIVER_WITH_P_KM",
  20.     "STR"
  21.   FROM v_mobility_groups_franki
  22.   UNION
  23.   SELECT "PERSON_ID",
  24.     "VEHICLE_OWNER_ID",
  25.     "COMPANY_NR",
  26.     "DATE_DAY",
  27.     "TOTAL_EUROCENT",
  28.     "TOT_PASSENGER_KM",
  29.     "TOT_DRIVER_WITH_P_KM",
  30.     "STR"
  31.   FROM v_prestation_groups_gerny
  32.   WHERE vehicle_owner_id=100764
  33.   UNION
  34.   SELECT "PERSON_ID",
  35.     "VEHICLE_OWNER_ID",
  36.     "COMPANY_NR",
  37.     "DATE_DAY",
  38.     "TOTAL_EUROCENT",
  39.     "TOT_PASSENGER_KM",
  40.     "TOT_DRIVER_WITH_P_KM",
  41.     "STR"
  42.   FROM v_prestation_groups_putman;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement