POSN_INCUMBENT(SQL View) |
Index Back |
---|---|
Posn Incumbents - Emplid OnlyPOSN_INCUMBENT is a view which retrieves the emplid of the current incumbent by position number. It is used in the Position Management application when the incumbent is brought into panels via related-display to Position_Nbr. |
SELECT A.POSITION_NBR , A.EMPLID , A.EFFDT FROM PS_JOB A WHERE A.EMPL_STATUS IN('A','P','L','S') AND A.POSITION_NBR <> ' ' AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_JOB C WHERE C.EMPLID = A.EMPLID AND C.EMPL_RCD = A.EMPL_RCD AND C.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(D.EFFSEQ) FROM PS_JOB D WHERE D.EMPLID = A.EMPLID AND D.EMPL_RCD = A.EMPL_RCD AND D.EFFDT = A.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(8) | VARCHAR2(8) NOT NULL |
Position Number
Prompt Table: POSITION_DATA |
|
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |