JOB_SAL_GRD_VW(SQL View) |
Index Back |
---|---|
Current Salary Ranges by GradeJOB_SAL_GRD_VW returns annual min, mid and max salaray rates for a given emplid/empl_rcd. It is used in the My Teams fluid pages. |
SELECT JB.EMPLID , JB.EMPL_RCD , JB.ANNUAL_RT , JB.CURRENCY_CD , JB.HOURLY_RT , GRD.MIN_RT_ANNUAL , GRD.MID_RT_ANNUAL , GRD.MAX_RT_ANNUAL , GRD.CURRENCY_CD , GRD.MID_RT_HOURLY FROM PS_JOB JB LEFT OUTER JOIN PS_SAL_GRADE_CURVW GRD ON JB.SETID_SALARY = GRD.SETID AND JB.SAL_ADMIN_PLAN = GRD.SAL_ADMIN_PLAN AND JB.GRADE = GRD.GRADE WHERE JB.EFFDT = ( SELECT MAX(ED1.EFFDT) FROM PS_JOB ED1 WHERE ED1.EMPLID = JB.EMPLID AND ED1.EMPL_RCD = JB.EMPL_RCD AND ED1.EFFDT <= %CurrentDateIn ) AND JB.EFFSEQ = ( SELECT MAX(ES.EFFSEQ) FROM PS_JOB ES WHERE ES.EMPLID = JB.EMPLID AND ES.EMPL_RCD = JB.EMPL_RCD AND ES.EFFDT = JB.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 | ANNUAL_RT | Number(19,3) | DECIMAL(18,3) NOT NULL | Annual Rate |
4 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
5 | HOURLY_RT | Number(19,6) | DECIMAL(18,6) NOT NULL | Hourly Rate |
6 | MIN_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Minimum Pay Rate-Annual |
7 | MID_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Midpoint Pay Rate-Annual |
8 | MAX_RT_ANNUAL | Number(19,3) | DECIMAL(18,3) NOT NULL | Maximum Pay Rate-Annual |
9 | SAL_RANGE_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Salary Range Currency |
10 | MID_RT_HOURLY | Number(19,6) | DECIMAL(18,6) NOT NULL | Midpoint Pay Rate-Hourly |