P6_WBS_ACTT2_VW(SQL View) |
Index Back |
---|---|
P6 WBS-Actv Actl Cost Txn2 VwPSFT Project Activity total Actual Cost, aggregated per PC Transaction ID (level 3 view, does outer join on P6_WBS_ACTTX_VW to ensure Resource Amount always populated with non-null value) |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACTIVITY_ID , A.PC_TRANS_ID , CASE WHEN B.RESOURCE_AMOUNT IS NULL THEN 0 ELSE B.RESOURCE_AMOUNT END FROM PS_P6_WBS_TXNID_VW A LEFT OUTER JOIN PS_P6_WBS_ACTTX_VW B ON B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROJECT_ID = A.PROJECT_ID AND B.ACTIVITY_ID = A.ACTIVITY_ID AND B.PC_TRANS_ID = A.PC_TRANS_ID |
# | 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 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
4 | PC_TRANS_ID | Character(10) | VARCHAR2(10) NOT NULL | Transaction Identifier |
5 | RESOURCE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Transaction Amount |