FE_OPROW_LOC_VW

(SQL View)
Index Back

SELECT TMP.OPRID ,A.EMPLID , A.EMPL_RCD , NM.LAST_NAME , NM.FIRST_NAME , JC.DESCR , LC.DESCR FROM PS_JOB A , PS_JOBCODE_TBL JC , PS_PERSON_NAME NM , PS_LOCATION_TBL LC , PS_OPRROWS_TMP TMP WHERE A.EMPLID = TMP.EMPLID AND A.EMPL_RCD = TMP.EMPL_RCD AND TMP.ITEMNAME = 'LOCATION_CHANGE' AND A.EFFDT= ( SELECT MAX(A2.EFFDT) FROM PS_JOB A2 WHERE A.EMPLID=A2.EMPLID AND A.EMPL_RCD=A2.EMPL_RCD AND A2.EFFDT<= %CurrentDateIn ) AND A.EFFSEQ= ( SELECT MAX(A3.EFFSEQ) FROM PS_JOB A3 WHERE A.EMPLID=A3.EMPLID AND A.EMPL_RCD=A3.EMPL_RCD AND A.EFFDT=A3.EFFDT ) AND JC.SETID = A.SETID_JOBCODE AND JC.JOBCODE = A.JOBCODE AND JC.EFF_STATUS = 'A' AND JC.EFFDT =( SELECT MAX(JC2.EFFDT) FROM PS_JOBCODE_TBL JC2 WHERE JC2.SETID=JC.SETID AND JC2.JOBCODE=JC.JOBCODE AND JC2.EFFDT<= %CurrentDateIn ) AND NM.EMPLID = A.EMPLID

# 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 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
4 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
5 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
6 JOB_DESCR_SS Character(30) VARCHAR2(30) NOT NULL Job Title
7 LOC_DESCR_SS Character(30) VARCHAR2(30) NOT NULL Location Description