DEPT_DI_VW

(SQL View)
Index Back

Dept View For DI

Dept View For Directory Interface

SELECT A.EMPLID , A.EMPL_RCD , A.EFFDT , A.EFFSEQ ,A.SETID_DEPT ,A.DEPTID ,B.DESCR ,B.DESCRSHORT FROM PS_JOB A , PS_DEPT_TBL_EFF_VW B WHERE A.JOB_INDICATOR = 'P' 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) AND A.SETID_DEPT = B.SETID AND A.DEPTID = B.DEPTID

  • Related Language Record: DEPT_DI_VW_LANG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

    Default Value: PER_ORG_ASGN.EMPLID

    Prompt Table: PERS_SRCH_GBL

    2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
    3 EFFDT Date(10) DATE NOT NULL Effective Date
    4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
    5 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
    6 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    8 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description