PRIM_PAYGRP_VW

(SQL View)
Index Back

Primary PayGroup View


SELECT A.EMPLID , A.COMPANY , A.EMPL_RCD , A.PAYGROUP FROM PS_JOB A WHERE A.EFFDT=( SELECT MAX(B.EFFDT) FROM PS_JOB B WHERE B.EMPLID=A.EMPLID AND B.EMPL_RCD=A.EMPL_RCD AND B.COMPANY=A.COMPANY) AND A.EFFSEQ=( SELECT MAX(C.EFFSEQ) FROM PS_JOB C WHERE C.EMPLID=A.EMPLID AND C.EMPL_RCD=A.EMPL_RCD AND C.EFFDT=A.EFFDT AND C.COMPANY=A.COMPANY)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
4 PAYGROUP Character(3) VARCHAR2(3) NOT NULL Pay Group