EMPL_CURRJOB_VW

(SQL View)
Index Back

View used for Supr Role Querys

View used for the ROLE_SUPERVISOR_xxx role queries. Gets the Reports_to and Supervisor_ID from the current Job Row.

SELECT E.EMPLID ,E.EMPL_RCD ,E.BUSINESS_TITLE ,J.SUPERVISOR_ID ,J.REPORTS_TO ,E.POSITION_PHONE FROM PS_JOB J , PS_PER_ORG_ASGN E WHERE E.EMPLID = J.EMPLID AND E.EMPL_RCD = J.EMPL_RCD AND J.EffDt = ( SELECT MAX(C.EffDt) FROM PS_JOB C WHERE C.EmplID = J.EmplID AND C.EMPL_RCD = J.EMPL_RCD AND C.EffDt <= %CurrentDateIn) AND J.EffSeq = ( SELECT MAX(D.EffSeq) FROM PS_JOB D WHERE D.EmplID = J.EmplID AND D.EMPL_RCD = J.EMPL_RCD AND D.EffDt = J.EffDt)

  • Related Language Record: EMPL_CURRJOBLNG
  • # 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 Rcd Nbr
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    4 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
    5 REPORTS_TO Character(8) VARCHAR2(8) NOT NULL Reports To Position Number
    6 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone