W3EB_ALLBYNM_VW(SQL View) |
Index Back |
---|---|
eBenefitsInsurance search record that contains only the most effective dated information from the the LIFE_ADD_BEN table |
SELECT A.EMPLID , O.OPRID , A.EMPL_RCD , A.PLAN_TYPE , B.JOBCODE , T.DESCR , A.COVERAGE_ELECT FROM PS_LIFE_ADD_BEN A , PSOPRDEFN O , PS_JOB B , PS_JOBCODE_TBL T WHERE A.COVERAGE_ELECT <> 'T' AND A.PLAN_TYPE <> '24' AND A.PLAN_TYPE <> '25' AND A.EMPLID=B.EMPLID AND A.EMPLID = O.EMPLID AND A.EMPL_RCD=B.EMPL_RCD AND A.EFFDT<=%CurrentDateIn AND A.EFFDT= ( SELECT MAX(A1.EFFDT) FROM PS_LIFE_ADD_BEN A1 WHERE A1.EMPLID=A.EMPLID AND A1.PLAN_TYPE=A.PLAN_TYPE AND A1.EMPL_RCD=A.EMPL_RCD AND A1.EFFDT<=%CurrentDateIn) AND B.EFFDT= ( SELECT MAX(B1.EFFDT) FROM PS_JOB B1 WHERE B1.EMPLID=B.EMPLID AND B1.EMPL_RCD=B.EMPL_RCD AND B1.EFFDT<=%CurrentDateIn) AND B.EFFSEQ= ( SELECT MAX(B2.EFFSEQ) FROM PS_JOB B2 WHERE B2.EMPLID=B.EMPLID AND B2.EMPL_RCD=B.EMPL_RCD AND B2.EFFDT=B.EFFDT) AND T.SETID=B.SETID_JOBCODE AND T.JOBCODE=B.JOBCODE AND T.EFFDT<=%CurrentDateIn AND T.EFFDT= ( SELECT MAX(T1.EFFDT) FROM PS_JOBCODE_TBL T1 WHERE T1.SETID=T.SETID AND T1.JOBCODE=T.JOBCODE AND T1.EFFDT<=B.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
4 | PLAN_TYPE | Character(2) | VARCHAR2(2) NOT NULL | Identifies a category of benefit plan, such as Medical, Dental, and Life (Insurance). A set of plan type codes, as well as rules for creating new codes, is provided by PeopleSoft. Plan Type codes determine how the system processes and defines eligibility for the various benefit plans. |
5 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | COVERAGE_ELECT | Character(1) | VARCHAR2(1) NOT NULL |
Coverage Election
E=Elect T=Terminate W=Waive |