GP_SS_EE_RCD1VW(SQL View) |
Index Back |
---|---|
EE/JOBs associated with GPList of EEs currently associated with Global Payroll (i.e. GP_PAYGROUP has value on JOB table) |
SELECT DISTINCT O.OPRID , A.EMPLID , A.EMPL_RCD , B.DESCR , C.DESCR , A.SETID_JOBCODE , A.SUPERVISOR_ID , A.REPORTS_TO , PE.COUNTRY FROM PS_JOB A , PS_DEPT_TBL B , PS_JOBCODE_TBL C , PS_GP_PYGRP PG , PS_GP_PYENT PE , PSOPRDEFN O WHERE A.SETID_JOBCODE = C.SETID AND A.JOBCODE = C.JOBCODE AND %EffdtCheck(JOBCODE_TBL, C, %CurrentDateIn) AND A.SETID_DEPT = B.SETID AND A.DEPTID = B.DEPTID AND %EffdtCheck(DEPT_TBL, B, %CurrentDateIn) AND A.GP_PAYGROUP = PG.GP_PAYGROUP AND PG.PAY_ENTITY = PE.PAY_ENTITY AND A.EFFDT=( SELECT MAX(EFFDT) FROM PS_JOB JOB WHERE JOB.EMPLID = A.EMPLID AND JOB.EMPL_RCD = A.EMPL_RCD AND JOB.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = A.EMPLID AND EMPL_RCD = A.EMPL_RCD AND EFFDT = A.EFFDT) AND A.EMPLID = O.EMPLID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | JOBTITLE | Character(30) | VARCHAR2(30) NOT NULL | Job Title |
6 | SETID_JOBCODE | Character(5) | VARCHAR2(5) NOT NULL | Job Code SetID |
7 | SUPERVISOR_ID | Character(11) | VARCHAR2(11) NOT NULL | Supervisor ID |
8 | REPORTS_TO | Character(8) | VARCHAR2(8) NOT NULL | Reports To Position Number |
9 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |