GPCH_SI_PRV_VW1

(SQL View)
Index Back

Pension Fund Data View

Pension Fund Data View

SELECT DISTINCT J.EMPLID , J.EMPL_RCD ,S.GPCH_SI_PROV_TYPE , S.GPCH_SI_PROV_CD ,S.EFFDT , S.DESCR FROM PS_GPCH_SI_PROVIDR S , PS_JOB J WHERE EXISTS ( SELECT 'X' FROM PS_GPCH_PK_COMPANY C WHERE S.GPCH_SI_PROV_TYPE = C.GPCH_SI_PROV_TYPE AND S.GPCH_SI_PROV_CD = C.GPCH_SI_PROV_CD AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_GPCH_PK_COMPANY C1 WHERE C1.COMPANY IN ( SELECT J1.COMPANY FROM PS_JOB J1 WHERE J.EMPLID = J1.EMPLID AND J.EMPL_RCD = J1.EMPL_RCD AND J.EFFDT = J1.EFFDT AND J.EFFSEQ = J1.EFFSEQ AND J1.EFFDT = ( SELECT MAX(J2.EFFDT) FROM PS_JOB J2 WHERE J1.EMPLID = J2.EMPLID AND J1.EMPL_RCD = J2.EMPL_RCD AND J1.EFFDT = J2.EFFDT AND J1.EFFSEQ = J2.EFFSEQ) AND J1.EFFSEQ = ( SELECT MAX (J3.EFFSEQ) FROM PS_JOB J3 WHERE J1.EMPLID = J3.EMPLID AND J1.EMPL_RCD = J3.EMPL_RCD AND J1.EFFDT = J3.EFFDT) AND J1.HR_STATUS = 'A' ) AND C.COMPANY = C1.COMPANY)) AND S.EFF_STATUS = 'A' AND S.GPCH_SI_PROV_TYPE = '6'

# 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 GPCH_SI_PROV_TYPE Character(1) VARCHAR2(1) NOT NULL Provider Type
0=Identify
1=Others
2=UVG-LAA
3=KTG-AMC
4=UVGZ-LAAC
5=FAK-CAF
6=BVG-LPP
7=AHV-AVS
8=LAW-CDS
9=BFS-OFS
A=QST-IS
B=Write File
C=Base AL08
D=GRFI-FRFI
E=EO-APG
I=BNK_BNQ
4 GPCH_SI_PROV_CD Character(6) VARCHAR2(6) NOT NULL Provider Code
5 EFFDT Date(10) DATE Effective Date
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description