PY_IC_CTRY_VW

(SQL View)
Index Back

SELECT DISTINCT A.EMPLID , B.COUNTRY , C.DESCR , C.DESCRSHORT FROM PS_PAYROLL_DATA A , PS_PAYGROUP_TBL B , PS_COUNTRY_TBL C WHERE B.COUNTRY IN ('USA', 'CAN') AND A.COMPANY = B.COMPANY AND A.PRIM_PAYGROUP = B.PAYGROUP AND B.COUNTRY = C.COUNTRY AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_PAYGROUP_TBL B1 WHERE B1.COMPANY = B.COMPANY AND B1.PAYGROUP = B.PAYGROUP AND B1.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
4 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description