SAL_PLN_COMP_VW(SQL View) |
Index Back |
---|---|
Salary Planning by GroupThis view will be used in Salary Planning by Group in the calculation of the increases for each employee in the group |
SELECT A.EMPLID ,A.EMPL_RCD ,G.EFFDT ,G.EFFSEQ ,C.COMP_EFFSEQ ,C.COMP_RATECD ,A.EFFDT ,A.EFFSEQ ,A.EMPL_STATUS ,C.COMP_FREQUENCY ,C.COMPRATE ,C.CURRENCY_CD ,C.COMP_RATE_POINTS ,C.COMP_PCT ,C.RATE_CODE_GROUP ,C.COMPRATE ,C.COMPRATE ,B.GB_GROUP_ID ,B.BUDGET_START_DT ,G.BUDGET_ID ,T.COMP_RATE_TYPE FROM PS_JOB A ,PS_GROUP_INCR_CNTL B ,PS_GRP_INCR_BUDGET G ,PS_COMPENSATION C ,PS_SAL_PLN_GRP_RES R ,PS_COMP_RATECD_TBL T WHERE B.GB_GROUP_ID = G.GB_GROUP_ID AND R.VERSIONGBQDM = ( SELECT MAX(R2.VERSIONGBQDM) FROM PS_SAL_PLN_GRP_RES R2 WHERE R.GB_GROUP_ID = R2.GB_GROUP_ID) AND A.EMPLID = R.EMPLID AND A.EMPL_RCD = R.EMPL_RCD AND A.EFFDT = R.JOB_EFFDT AND A.EFFSEQ = R.JOB_EFFSEQ AND A.EFFDT = ( SELECT MAX(R1.EFFDT) FROM PS_JOB R1 WHERE A.EMPLID = R1.EMPLID AND A.EMPL_RCD = R1.EMPL_RCD AND R1.EFFDT <= B.SAL_PLAN_START_DT) AND A.EFFSEQ = ( SELECT MAX(R3.EFFSEQ) FROM PS_JOB R3 WHERE A.EMPLID = R3.EMPLID AND A.EMPL_RCD = R3.EMPL_RCD AND A.EFFDT = R3.EFFDT) AND B.GB_GROUP_ID = R.GB_GROUP_ID AND C.EMPLID = A.EMPLID AND C.EMPL_RCD = A.EMPL_RCD AND C.EFFDT = A.EFFDT AND C.EFFSEQ = A.EFFSEQ AND C.COMP_RATECD = T.COMP_RATECD AND T.EFFDT = ( SELECT MAX(T2.EFFDT) FROM PS_COMP_RATECD_TBL T2 WHERE T2.COMP_RATECD = T.COMP_RATECD AND T2.EFFDT <= C.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 |
4 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
5 | COMP_EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Compensation Eff Sequence |
6 | COMP_RATECD | Character(6) | VARCHAR2(6) NOT NULL | Comp Rate Code |
7 | JOB_EFFDT | Date(10) | DATE | Job Effective Date |
8 | JOB_EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Job Effective Sequence |
9 | EMPL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Payroll Status
A=Active D=Deceased L=Leave of Absence P=Leave With Pay Q=Retired With Pay R=Retired S=Suspended T=Terminated U=Terminated With Pay V=Terminated Pension Pay Out W=Short Work Break X=Retired-Pension Administration |
10 | 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 Prompt Table: COMP_FREQ_VW |
11 | COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | Compensation Rate |
12 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
13 | COMP_RATE_POINTS | Number(5,0) | INTEGER NOT NULL | Comp Rate Points |
14 | COMP_PCT | Number(7,3) | DECIMAL(6,3) NOT NULL | Comp Percent |
15 | RATE_CODE_GROUP | Character(6) | VARCHAR2(6) NOT NULL | Rate Code Group Name |
16 | COMPRATE_USED_OT | Number(19,6) | DECIMAL(18,6) NOT NULL | Comp Rate Used for Overtime |
17 | NEW_COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | New Compensation Rate |
18 | GB_GROUP_ID | Character(15) | VARCHAR2(15) NOT NULL | Group Build ID. |
19 | BUDGET_START_DT | Date(10) | DATE | Budget Start Date |
20 | BUDGET_ID | Character(10) | VARCHAR2(10) NOT NULL | Budget ID |
21 | COMP_RATE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Rate Code Type
FA=Flat Amount HF=Hourly Rate + Flat Amount HR=Hourly Rate PC=Percent PT=Points |