TRN_SML_SUM_VW(SQL View) |
Index Back |
---|---|
Training Simulation ViewTraining Simulation View |
SELECT A.BUDGET_PERIOD, A.BUSINESS_UNIT, A.DEMAND_ID, A.COURSE, A.TOTAL_DEMAND, A.VARIABLE_COST, A.CURRENCY_CD, SUM(B.VARIABLE_COST)+MAX(A.VARIABLE_COST), SUM(B.FIXED_COST) FROM PS_TRN_DEMAND A, PS_TRN_CST_ELEMENT B, PS_BUDGET_PERIOD C, PS_BUDGET_BUS_UNIT D WHERE A.BUDGET_PERIOD = C.BUDGET_PERIOD AND A.BUDGET_PERIOD = D.BUDGET_PERIOD AND A.BUSINESS_UNIT =D.BUSINESS_UNIT AND A.COURSE = B.COURSE AND B.EFFDT = (SELECT MAX(E.EFFDT) FROM PS_TRN_CST_ELEMENT E WHERE E.COURSE = A.COURSE AND E.EFFDT <= C.EFFDT) GROUP BY A.BUDGET_PERIOD, A.BUSINESS_UNIT, A.DEMAND_ID, A.COURSE, A.TOTAL_DEMAND, A.VARIABLE_COST, A.CURRENCY_CD |
# | 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 | DEMAND_ID | Character(10) | VARCHAR2(10) NOT NULL |
Demand ID
Prompt Table: TRN_DEMAND |
4 | COURSE | Character(6) | VARCHAR2(6) NOT NULL | Course Code |
5 | TOTAL_DEMAND | Number(6,0) | INTEGER NOT NULL | Total General Demand |
6 | SALARY_COST_BUDGET | Number(19,3) | DECIMAL(18,3) NOT NULL | Empl. Training Budgeted Cost |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | VARIABLE_COST | Number(19,3) | DECIMAL(18,3) NOT NULL | Variable Cost |
9 | FIXED_COST | Number(19,3) | DECIMAL(18,3) NOT NULL | Fixed Cost |