SALPLN_CMP_G_VW(SQL View) |
Index Back |
---|---|
EE Current Job Data - Sal PlanSALPLN_CMP_G_VW is a view which retrieves the compensation data for employees which was current as of the salary plan start date. It is used in the Salary Planning application. |
SELECT A.EMPLID ,A.EMPL_RCD ,B.SAL_PLAN_START_DT ,A.EFFDT ,A.EFFSEQ ,A.EMPL_STATUS ,A.COMP_FREQUENCY ,A.COMPRATE ,A.ANNUAL_RT ,A.HOURLY_RT ,A.CURRENCY_CD ,A.SAL_ADMIN_PLAN ,A.GRADE ,A.STEP ,A.COMPANY ,A.PAYGROUP ,A.DEPTID ,A.JOBCODE ,A.POSITION_NBR ,A.STD_HOURS ,A.STD_HRS_FREQUENCY ,A.BUSINESS_UNIT ,0 ,0 ,0 ,0 ,0 ,0 ,B.GB_GROUP_ID ,B.BUDGET_START_DT ,G.BUDGET_ID ,A.REG_REGION ,A.PAID_HOURS ,A.PAID_HRS_FREQUENCY FROM PS_JOB A ,PS_GROUP_INCR_CNTL B ,PS_GRP_INCR_BUDGT1 G ,PS_SAL_PLN_GRP_RES R WHERE B.GB_GROUP_ID = G.GB_GROUP_ID AND B.BUDGET_START_DT = G.BUDGET_START_DT AND R.GB_GROUP_ID = G.GB_GROUP_ID AND A.EMPLID = R.EMPLID AND A.EMPL_RCD = R.EMPL_RCD AND R.VERSIONGBQDM = ( SELECT MAX(R2.VERSIONGBQDM) FROM PS_SAL_PLN_GRP_RES R2 WHERE R.GB_GROUP_ID = R2.GB_GROUP_ID) AND R.JOB_EFFDT = ( SELECT MAX(R1.JOB_EFFDT) FROM PS_SAL_PLN_GRP_RES R1 WHERE R.GB_GROUP_ID = R1.GB_GROUP_ID AND R.VERSIONGBQDM = R1.VERSIONGBQDM AND R.EMPLID = R1.EMPLID AND R.EMPL_RCD = R1.EMPL_RCD AND R1.JOB_EFFDT <= B.SAL_PLAN_START_DT) AND R.JOB_EFFSEQ = ( SELECT MAX(R3.JOB_EFFSEQ) FROM PS_SAL_PLN_GRP_RES R3 WHERE R.GB_GROUP_ID = R3.GB_GROUP_ID AND R.VERSIONGBQDM = R3.VERSIONGBQDM AND R.EMPLID = R3.EMPLID AND R.EMPL_RCD = R3.EMPL_RCD AND R.JOB_EFFDT = R3.JOB_EFFDT) AND A.EFFDT = R.JOB_EFFDT AND A.EFFSEQ = R.JOB_EFFSEQ |
# | 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 NOT NULL | Effective Date |
4 | JOB_EFFDT | Date(10) | DATE | Job Effective Date |
5 | JOB_EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Job Effective Sequence |
6 | 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 |
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 | COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | Compensation Rate |
9 | ANNUAL_RT | Number(19,3) | DECIMAL(18,3) NOT NULL | Annual Rate |
10 | HOURLY_RT | Number(19,6) | DECIMAL(18,6) NOT NULL | Hourly Rate |
11 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
12 | SAL_ADMIN_PLAN | Character(4) | VARCHAR2(4) NOT NULL | Salary Administration Plan |
13 | GRADE | Character(3) | VARCHAR2(3) NOT NULL | Salary Grade |
14 | STEP | Number(2,0) | SMALLINT NOT NULL | Step |
15 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
16 | PAYGROUP | Character(3) | VARCHAR2(3) NOT NULL | Pay Group |
17 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
18 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
19 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL | Position Number |
20 | STD_HOURS | Number(7,2) | DECIMAL(6,2) NOT NULL | Standard Hours |
21 | STD_HRS_FREQUENCY | Character(5) | VARCHAR2(5) NOT NULL | Standard Work Period |
22 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
23 | MIN_RT_HOURLY | Number(19,6) | DECIMAL(18,6) NOT NULL | Minimum Pay Rate-Hourly |
24 | MID_RT_HOURLY | Number(19,6) | DECIMAL(18,6) NOT NULL | Midpoint Pay Rate-Hourly |
25 | MAX_RT_HOURLY | Number(19,6) | DECIMAL(18,6) NOT NULL | Maximum Pay Rate-Hourly |
26 | MIN_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Minimum Pay Rate-Annual |
27 | MID_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Midpoint Pay Rate-Annual |
28 | MAX_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Maximum Pay Rate-Annual |
29 | GB_GROUP_ID | Character(15) | VARCHAR2(15) NOT NULL | Group Build ID. |
30 | BUDGET_START_DT | Date(10) | DATE | Budget Start Date |
31 | BUDGET_ID | Character(10) | VARCHAR2(10) NOT NULL | Budget ID |
32 | REG_REGION | Character(5) | VARCHAR2(5) NOT NULL | Regulatory Region |
33 | PAID_HOURS | Number(7,2) | DECIMAL(6,2) NOT NULL | Paid Hours |
34 | PAID_HRS_FREQUENCY | Character(5) | VARCHAR2(5) NOT NULL | Paid Work Period |