PY_MOD_ERNCT_VW(SQL View) |
Index Back |
---|---|
Paychk Mod Company EarningsThis view combines PY_MOD_PGERN_VW and EARNINGS_TBL. |
SELECT DISTINCT A.ERNCD , A.DESCR , A.PAYMENT_TYPE , 'A' FROM PS_PY_MOD_PGERN_VW A UNION SELECT DISTINCT A.ERNCD , A.DESCR , A.PAYMENT_TYPE , A.EFF_STATUS FROM PS_EARNINGS_TBL A WHERE A.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_EARNINGS_TBL B_ED WHERE A.ERNCD = B_ED.ERNCD AND B_ED.EFFDT <= %CurrentDateIn) AND NOT EXISTS ( SELECT 'Y' FROM PS_PY_MOD_PGERN_VW B WHERE B.ERNCD = A.ERNCD) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ERNCD | Character(3) | VARCHAR2(3) NOT NULL | Earnings Code |
2 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
3 | PAYMENT_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Payment Type
A=Amounts Only B=Both Hours and Amount OK E=Either Hours or Amount OK F=Flat Amount H=Hours Only S=Defined by Salary System U=Unit/Override Rate |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |