GP_CG_DEPT_VW

(SQL View)
Index Back

Departments in Calendar Group

Used for prompt-edits. Lists DEPTs that are represented in a Cal Grp based on GP PYE PRC STAT

SELECT DISTINCT PPS.CAL_RUN_ID , D.DEPTID , D.DESCR FROM PS_GP_PYE_PRC_STAT PPS , PS_JOB JOB , PS_DEPT_TBL D WHERE PPS.EMPLID=JOB.EMPLID AND PPS.EMPL_RCD=JOB.EMPL_RCD AND JOB.EFFDT = ( SELECT MAX(JJ.EFFDT) FROM PS_JOB JJ WHERE JJ.EMPLID=PPS.EMPLID AND JJ.EMPL_RCD=PPS.EMPL_RCD AND JJ.EFFDT <= PPS.PRD_END_DT) AND JOB.DEPTID=D.DEPTID AND D.EFFDT = ( SELECT MAX(DD.EFFDT) FROM PS_DEPT_TBL DD WHERE D.DEPTID = DD.DEPTID AND DD.EFFDT <= %CurrentDateIn)

  • Related Language Record: GP_CG_DEPT_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
    2 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description