GM_PT_BUD_PD_V7

(SQL View)
Index Back

Budget Period View by Contract


SELECT DISTINCT C.OPRID , B.BUSINESS_UNIT , B.CONTRACT_NUM , A.BUDGET_PERIOD_GM , MIN(A.START_DT) , MAX(A.END_DT) FROM PS_GM_PT_PRJ_BUD A , PS_GM_PT_ACC_LVL2 B , PSOPRDEFN C , PS_GM_PT_PROJECT D WHERE C.EMPLID = B.EMPLID AND B.AWARD_FLAG = 'Y' AND (B.END_DT >= %CurrentDateIn OR B.END_DT IS NULL) AND D.CONTRACT_NUM = B.CONTRACT_NUM AND D.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.BUSINESS_UNIT_PC = D.BUSINESS_UNIT_PC AND A.PROJECT_ID = D.PROJECT_ID GROUP BY C.OPRID, B.BUSINESS_UNIT , B.CONTRACT_NUM, A.BUDGET_PERIOD_GM

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
4 BUDGET_PERIOD_GM Number(3,0) SMALLINT NOT NULL BUDGET_PERIOD_GM
5 BEGIN_DT Date(10) DATE Begin Date
6 END_DT Date(10) DATE End Date