TRN_GBL_DEP_VW

(SQL View)
Index Back

Training Simulation View

Training Simulation View

SELECT A.BUDGET_PERIOD, A.BUSINESS_UNIT, E.DESCR, A.SCENARIO, A.DEMAND_ID, A.DEPTID, SUM(A.DEMAND_APPROVED), MAX(B.TOTAL_DEMAND), MAX(D.DEPT_DEMAND), MAX(B.TOTAL_DEMAND) - SUM(A.DEMAND_APPROVED) FROM PS_TRN_SIMULATION A, PS_TRN_DEMAND B, PS_TRN_SCENARIO C, PS_TRN_DEMAND_DEPT D, PS_BUDGET_PERIOD E, PS_BUDGET_BUS_UNIT F WHERE A.BUDGET_PERIOD = B.BUDGET_PERIOD AND A.DEMAND_ID = B.DEMAND_ID AND A.BUDGET_PERIOD = C.BUDGET_PERIOD AND A.DEPTID = C.DEPTID AND A.SCENARIO = C.SCENARIO AND C.GLOBAL_SCENARIO_SW = 'Y' AND A.BUDGET_PERIOD = D.BUDGET_PERIOD AND A.DEMAND_ID = D.DEMAND_ID AND A.DEPTID = D.DEPTID AND A.BUDGET_PERIOD = E.BUDGET_PERIOD AND F.BUDGET_PERIOD = E.BUDGET_PERIOD AND F.BUSINESS_UNIT = A.BUSINESS_UNIT AND F.BUSINESS_UNIT = B.BUSINESS_UNIT AND F.BUSINESS_UNIT = C.BUSINESS_UNIT AND F.BUSINESS_UNIT = D.BUSINESS_UNIT GROUP BY A.BUDGET_PERIOD, A.BUSINESS_UNIT, E.DESCR, A.SCENARIO, A.DEMAND_ID, A.DEPTID

  • Related Language Record: TN_GBLDEPVW_LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUDGET_PERIOD Character(10) VARCHAR2(10) NOT NULL Budget Period

    Prompt Table: BUDGET_PERIOD

    2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Prompt Table: BUDGET_BUS_UNIT

    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    4 SCENARIO Character(10) VARCHAR2(10) NOT NULL Scenario

    Prompt Table: TRN_SCENARIO

    5 DEMAND_ID Character(10) VARCHAR2(10) NOT NULL Demand ID

    Prompt Table: TRN_DEMAND

    6 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

    Prompt Table: DEPT_TBL

    7 DEMAND_APPROVED Number(6,0) INTEGER NOT NULL Employees Approved
    8 TOTAL_DEMAND Number(6,0) INTEGER NOT NULL Total General Demand
    9 DEPT_DEMAND Number(6,0) INTEGER NOT NULL Department Demand
    10 TOTAL_IGNORED Signed Number(7,0) DECIMAL(6) NOT NULL Employees Ignored