TRN_SML_DEMG_VW(SQL View) |
Index Back |
---|---|
Initial Total Request ViewInitial Total Request View |
SELECT A.BUDGET_PERIOD, A.BUSINESS_UNIT, D.DESCR, C.SCENARIO, A.DEMAND_ID, SUM(A.DEMAND_APPROVED), MAX(B.TOTAL_DEMAND), MAX(B.TOTAL_DEMAND) - SUM(A.DEMAND_APPROVED) FROM PS_TRN_SIMULATION A, PS_TRN_DEMAND B, PS_TRN_SCENARIO C, PS_BUDGET_PERIOD D, PS_BUDGET_BUS_UNIT E WHERE A.BUDGET_PERIOD = B.BUDGET_PERIOD AND E.BUSINESS_UNIT = A.BUSINESS_UNIT AND E.BUSINESS_UNIT = B.BUSINESS_UNIT AND E.BUSINESS_UNIT = C.BUSINESS_UNIT 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 D.BUDGET_PERIOD = E.BUDGET_PERIOD GROUP BY A.BUDGET_PERIOD, A.BUSINESS_UNIT, D.DESCR, C.SCENARIO, A.DEMAND_ID |
# | 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 | DEMAND_APPROVED | Number(6,0) | INTEGER NOT NULL | Employees Approved |
7 | TOTAL_DEMAND | Number(6,0) | INTEGER NOT NULL | Total General Demand |
8 | TOTAL_IGNORED | Signed Number(7,0) | DECIMAL(6) NOT NULL | Employees Ignored |