FO_JOBCD_WC_VW

(SQL View)
Index Back

PBM Jobcode WC


SELECT A.SETID , A.JOBCODE , A.EFFDT , A.COUNTRY , A.STATE , A.EFF_STATUS , A.FO_WC_CODE , B.DESCR FROM PS_FO_JOBCODE_WC A , PS_FO_WC_ST_CODE B WHERE A.COUNTRY = B.COUNTRY AND A.STATE = B.STATE AND A.FO_WC_CODE = B.FO_WC_CODE AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_FO_JOBCODE_WC C WHERE A.SETID = C.SETID AND A.JOBCODE = C.JOBCODE AND A.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_FO_WC_ST_CODE D WHERE B.COUNTRY = D.COUNTRY AND B.STATE = D.STATE AND B.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SETID_TBL

2 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code

Prompt Table: JOBCODE_TBL

3 EFFDT Date(10) DATE NOT NULL Effective Date

Default Value: %date

4 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: FO_WC_CNTRY_VW

5 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: FO_WC_STATE

6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: FO_JOBCODE_PRD.EFF_STATUS

7 FO_WC_CODE Character(4) VARCHAR2(4) NOT NULL Workers Comp Code

Prompt Table: FO_WC_ST_CODE

8 DESCR Character(30) VARCHAR2(30) NOT NULL Description