GPJP_RCD_2_SRCH

(SQL View)
Index Back

Use to search Employee record.

To search Employee Id and Record based on Job Data and IT Payee Data.

SELECT DISTINCT B.EMPLID , B.EMPL_RCD , CASE WHEN B.EFFDT > A.EFFDT THEN B.EFFDT ELSE A.EFFDT END , A.HR_STATUS , B.GPJP_IT_TYPE FROM PS_JOB A , PS_GPJP_IT_PYE_TAX B WHERE A.PAY_SYSTEM_FLG = 'GP' AND A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND ((A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = A.EMPLID AND EMPL_RCD = A.EMPL_RCD AND EFFDT <= B.EFFDT) AND A.EFFDT <= B.EFFDT) OR (B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_GPJP_IT_PYE_TAX WHERE EMPLID = B.EMPLID AND EMPL_RCD = B.EMPL_RCD AND EFFDT <= A.EFFDT) AND B.EFFDT <= A.EFFDT))

# 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 Record
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
5 GPJP_IT_TYPE Character(2) VARCHAR2(2) NOT NULL Used in Income Tax Data.
10=KOU
20=OTSU
30=Designated Rate