GM_TOTAL_AMT_VW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.PROPOSAL_ID , A.VERSION_ID , A.CURRENCY_CD , CASE WHEN SUM(B.TARGET_BUDGET_AMT) IS NULL THEN 0 ELSE SUM(B.TARGET_BUDGET_AMT) END FROM PS_GM_PROPOSAL A LEFT OUTER JOIN PS_GM_BUD_PD_AMT B ON B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROPOSAL_ID = A.PROPOSAL_ID AND B.VERSION_ID = A.VERSION_ID WHERE A.PROPOSAL_FLG = 'G' GROUP BY A.BUSINESS_UNIT, A.PROPOSAL_ID, A.VERSION_ID, 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 | PROPOSAL_ID | Character(25) | VARCHAR2(25) NOT NULL | Proposal ID |
3 | VERSION_ID | Character(7) | VARCHAR2(7) NOT NULL | Version ID |
4 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
5 | TOTAL_BUDGET_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | TOTAL_BUDGET_AMT |