PC_CUR_PROJ_MGR

(SQL View)
Index Back

Current Project Manager View


SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.PROJECT_MANAGER , %Substring((%TrimSubstr(PERS.FIRST_NAME, 1, 30) %Concat ' ' %Concat %TrimSubstr(PERS.LAST_NAME, 1, 30)), 1, 50) FROM PS_PROJECT_MGR A , PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = A.PROJECT_MANAGER AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_PROJECT_MGR B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND B.EFFDT <= %CurrentDateIn) AND PERS.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_PERS_DATA_EFFDT C WHERE C.EMPLID = PERS.EMPLID AND C.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: PROJECT_FS.BUSINESS_UNIT

2 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
3 PROJECT_MANAGER Character(11) VARCHAR2(11) NOT NULL Project Manager
4 NAME Character(50) VARCHAR2(50) NOT NULL Name