GPAU_TFN_JOB_VW(SQL View) |
Index Back |
---|---|
Payee job records per TFNThis table will record all the payee's job record for a combination of Emplid, Pay Entity, and Contract Number. |
SELECT A.EMPLID ,C.PAY_ENTITY ,B.BALANCE_GRP_NUM ,A.EMPL_RCD ,A.EFFDT ,A.COMPRATE ,A.COMP_FREQUENCY ,D.FREQ_ANNUAL_FACTOR ,D.FREQUENCY_TYPE FROM PS_JOB A , PS_JOB_JR B , PS_GP_PYGRP C , PS_FREQUENCY_TBL D WHERE B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND B.EFFDT = A.EFFDT AND B.EFFSEQ = ( SELECT MAX(A1.EFFSEQ) FROM PS_JOB A1 WHERE A1.EMPLID = B.EMPLID AND A1.EMPL_RCD = B.EMPL_RCD AND A1.EFFDT = B.EFFDT) AND B.EFFSEQ = A.EFFSEQ AND C.GP_PAYGROUP = A.GP_PAYGROUP AND D.FREQUENCY_ID = A.COMP_FREQUENCY AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_FREQUENCY_TBL D1 WHERE D1.FREQUENCY_ID = D.FREQUENCY_ID AND D1.EFFDT <= %CurrentDateIn) AND D.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | PAY_ENTITY | Character(10) | VARCHAR2(10) NOT NULL | Pay Entity |
3 | BALANCE_GRP_NUM | Character(3) | VARCHAR2(3) NOT NULL | This field will be used to determine the grouping of balances from the different jobs of the employee. |
4 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
5 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
6 | COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | Compensation Rate |
7 | 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 |
8 | FREQ_ANNUAL_FACTOR | Number(12,7) | DECIMAL(11,7) NOT NULL | Specifies the factor used for annualization/deannualization in a frequency conversion. The Frequency Annualization Factor is expressed in times per year. |
9 | FREQUENCY_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Indicates the type of a frequency ID.
A=Annual B=Biweekly C=Contract D=Daily F=Every Four Weeks H=Hourly M=Monthly Q=Quarterly S=Semimonthly W=Weekly |