GPSG_JOB_DPT_VW

(SQL View)
Index Back

GPSG - Job Department View

This view is used by the payslips process for GPSG.

SELECT A.CAL_ID ,B.EMPLID ,B.EMPL_RCD ,B.COMPANY ,B.COMP_FREQUENCY ,B.COMPRATE ,B.SETID_DEPT ,C.DEPTID ,C.DESCR FROM PS_GP_CALENDAR A ,PS_JOB B ,PS_DEPT_TBL C WHERE A.GP_PAYGROUP = B.GP_PAYGROUP AND B.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_JOB A_ED WHERE A_ED.EMPLID = B.EMPLID AND A_ED.EMPL_RCD = B.EMPL_RCD AND A_ED.EFFDT <= A.PYMT_DT) AND B.EFFSEQ = ( SELECT MAX(A_ES.EFFSEQ) FROM PS_JOB A_ES WHERE A_ES.EMPLID = B.EMPLID AND A_ES.EMPL_RCD = B.EMPL_RCD AND A_ES.EFFDT = B.EFFDT ) AND C.SETID = B.SETID_DEPT AND C.DEPTID = B.DEPTID AND C.EFFDT = ( SELECT MAX(DP.EFFDT) FROM PS_DEPT_TBL DP WHERE DP.SETID = C.SETID AND DP.DEPTID = C.DEPTID AND DP.EFFDT <= A.PYMT_DT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
4 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
5 COMP_FREQUENCY Character(5) VARCHAR2(5) NOT NULL Compensation Frequency
A=Annual
B=Biweekly
C=Contract
D=Daily
H=Hourly
M=Monthly
S=Semimonthly
W=Weekly
6 COMPRATE Number(19,6) DECIMAL(18,6) NOT NULL Compensation Rate
7 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
8 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
9 GPSG_DESCR Character(30) VARCHAR2(30) NOT NULL This object is a copy of the standard DESCR field.