GM_EC_BUD_2

(SQL View)
Index Back

sum direct cost - 'CONS'

budget_cat_type <> 'CONS' and GM_BUD_GROUP <> 'IDIR' (Not indirect cost)

SELECT A.BUSINESS_UNIT , A.PROPOSAL_ID , A.VERSION_ID , A.SUB_PROP_NBR , A.BUDGET_ID , A.BUDGET_PERIOD_GM , A.BUDGET_LN , A.BUDGET_CATEGORY , A.SPONSOR_AMT FROM PS_GM_EC_BUD_DTL A , PS_GM_BUD_CATEGORY B WHERE A.BUDGET_CATEGORY = B.BUDGET_CATEGORY AND B.SETID=( SELECT G.SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE = A.BUSINESS_UNIT AND G.RECNAME ='GM_BUD_CATEGORY') AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_GM_BUD_CATEGORY B1 WHERE B.SETID = B1.SETID AND B.BUDGET_CATEGORY = B1.BUDGET_CATEGORY AND B1.EFFDT <= %CurrentDateIn) AND B.BUD_CAT_TYPE <> 'CONS'

# 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 SUB_PROP_NBR Character(15) VARCHAR2(15) NOT NULL SUB_PROP_NBR
5 BUDGET_ID Character(15) VARCHAR2(15) NOT NULL BUDGET_ID
6 BUDGET_PERIOD_GM Number(3,0) SMALLINT NOT NULL BUDGET_PERIOD_GM
7 BUDGET_LN Number(6,0) INTEGER NOT NULL BUDGET_LN
8 BUDGET_CATEGORY Character(15) VARCHAR2(15) NOT NULL BUDGET_CATEGORY
9 SPONSOR_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL SPONSOR_AMT