GRP_INC_CMP4_VW(SQL View) |
Index Back |
---|---|
Budgeting by Group ViewThis view will be used in Salary Planning by Group in the calculation of the increases for each employee in the group |
SELECT B.GB_GROUP_ID , B.BUDGET_START_DT , B.BUDGET_ID ,C.EMPLID ,C.EMPL_RCD ,C.EFFDT ,C.EFFSEQ ,C.COMP_EFFSEQ ,C.COMP_RATECD ,C.COMP_PCT ,C.COMPRATE ,C.COMP_FREQUENCY ,C.CURRENCY_CD ,T.COMP_BASE_PAY_SW ,T.COMP_RATE_TYPE FROM PS_COMPENSATION C , PS_SAL_PLN_GRP_RES R , PS_COMP_RATECD_TBL T , PS_GRP_INCR_BUDGT1 B WHERE B.GB_GROUP_ID = R.GB_GROUP_ID AND C.EMPLID = R.EMPLID AND C.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 C.EFFDT = R.JOB_EFFDT AND C.EFFSEQ = R.JOB_EFFSEQ AND R.JOB_EFFDT = ( SELECT MAX(R3.JOB_EFFDT) FROM PS_SAL_PLN_GRP_RES R3 WHERE R.GB_GROUP_ID = R3.GB_GROUP_ID AND R.EMPLID = R3.EMPLID AND R3.VERSIONGBQDM = R.VERSIONGBQDM AND R3.JOB_EFFDT <= B.BUDGET_START_DT ) AND T.COMP_RATECD = C.COMP_RATECD AND T.EFFDT = ( SELECT MAX(T2.EFFDT) FROM PS_COMP_RATECD_TBL T2 WHERE T.COMP_RATECD = T2.COMP_RATECD AND T.EFFDT <= C.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | GB_GROUP_ID | Character(15) | VARCHAR2(15) NOT NULL | Group Build ID. |
2 | BUDGET_START_DT | Date(10) | DATE | Budget Period Start Date |
3 | BUDGET_ID | Character(10) | VARCHAR2(10) NOT NULL | Budget ID |
4 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
5 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
6 | EFFDT | Date(10) | DATE | Effective Date |
7 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
8 | COMP_EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Compensation Eff Sequence |
9 | COMP_RATECD | Character(6) | VARCHAR2(6) NOT NULL | Comp Rate Code |
10 | COMP_PCT | Number(7,3) | DECIMAL(6,3) NOT NULL | Comp Percent |
11 | COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | Compensation Rate |
12 | 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 |
13 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
14 | COMP_BASE_PAY_SW | Character(1) | VARCHAR2(1) NOT NULL | Comp Base Pay Switch |
15 | 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 |