PC_COST_BUD_VW(SQL View) |
Index Back |
---|---|
View of Project Actual vs. BudThis view calculates the actual cost, budget cost, and variance by Project. |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.DESCR , A.PROJECT_TYPE , A.PERCENT_COMPLETE , A.PC_COST_AMOUNT , SUM(B.RESOURCE_AMOUNT) , (A.PC_COST_AMOUNT - SUM(B.RESOURCE_AMOUNT)) , A.CURRENCY_CD FROM PS_PC_COST_SUM_VW A , PS_PC_ACTIVITY_SUM B , PS_PROJ_AN_GRP_MAP C , PS_SET_CNTRL_REC D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND C.ANALYSIS_GROUP = A.AN_GRP_ACTV_BUD AND D.RECNAME = 'PROJ_AN_GRP_MAP' AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.SETID = D.SETID AND B.ANALYSIS_TYPE = C.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.DESCR, A.PROJECT_TYPE, A.PERCENT_COMPLETE, A.PC_COST_AMOUNT, A.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | PROJECT_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Project Type
A=Activity G=Grant H=Phase P=Project S=Segment |
5 | PERCENT_COMPLETE | Number(6,2) | DECIMAL(5,2) NOT NULL | % Complete |
6 | PC_COST_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total cost for a project. |
7 | PC_BUDGET_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Project Budgeting: Budget Plan Total |
8 | PC_COST_VARIANCE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Cost Variance is the difference between actual costs and budgeted costs. |
9 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |