GPMY_JOB_LOC_VW(SQL View) |
Index Back |
---|---|
GPMY - Job Location ViewThis view is used by the payslips process for GPMY. |
SELECT A.CAL_ID ,B.EMPLID ,B.EMPL_RCD ,B.SETID_LOCATION ,C.LOCATION ,C.DESCR FROM PS_GP_CALENDAR A ,PS_JOB B ,PS_LOCATION_TBL C WHERE A.GP_PAYGROUP = B.GP_PAYGROUP AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = B.EMPLID AND EMPL_RCD = B.EMPL_RCD AND EFFDT <= A.PYMT_DT) AND B.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = B.EMPLID AND EMPL_RCD = B.EMPL_RCD AND EFFDT = B.EFFDT) AND C.SETID = B.SETID_LOCATION AND C.LOCATION = B.LOCATION AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LOCATION_TBL WHERE SETID = C.SETID AND LOCATION = C.LOCATION AND 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 Rcd Nbr |
4 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location SetID |
5 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
6 | GPMY_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This object is a copy of the standard DESCR field, however it contains additional labels not available on the standard. |