HR_RW_POSELG_VW

(SQL View)
Index Back

SELECT A.EMPLID ,A.EMPL_RCD ,A.REG_REGION , CASE WHEN P.AVAIL_TELEWORK_POS ='Y' THEN 'Y' ELSE 'N' END ,CASE WHEN P.LASTUPDDTTM IS NOT NULL THEN P.LASTUPDDTTM ELSE A.LASTUPDDTTM END FROM PS_JOB A LEFT OUTER JOIN ( SELECT * FROM PS_POSITION_DATA P WHERE P.Effdt=( SELECT MAX(P1.Effdt) FROM PS_POSITION_DATA P1 WHERE P.POSITION_NBR=P1.POSITION_NBR AND P1.EFFDT<=%CurrentDateIn) AND P.EFF_STATUS='A')P ON ( A.POSITION_NBR=P.POSITION_NBR ) WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_JOB A_ED WHERE A.EMPLID = A_ED.EMPLID AND A.EMPL_RCD = A_ED.EMPL_RCD AND A_ED.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(A_ES.EFFSEQ) FROM PS_JOB A_ES WHERE A.EMPLID = A_ES.EMPLID AND A.EMPL_RCD = A_ES.EMPL_RCD AND A.EFFDT = A_ES.EFFDT) AND A.HR_STATUS='A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region
4 HR_RW_POS_ELIGIBLE Character(1) VARCHAR2(1) NOT NULL Position Available for Remote Work
N=No
Y=Yes
5 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.