W3EB_INSMAIN_VW(SQL View) |
Index Back |
---|---|
EEBenefitsInsurance search record for benefits summary |
SELECT A.EMPLID ,B.EMPL_RCD ,B.PLAN_TYPE ,B.EFFDT ,A.NAME FROM PS_PERSON_NAME A , PS_LIFE_ADD_BEN B WHERE A.EMPLID = B.EMPLID AND B.PLAN_TYPE <>'24' AND B.PLAN_TYPE <>'25' AND (B.EFFDT = ( SELECT MAX(Z.EFFDT) FROM PS_LIFE_ADD_BEN Z WHERE Z.EMPLID = B.EMPLID AND Z.EMPL_RCD = B.EMPL_RCD AND Z.PLAN_TYPE = B.PLAN_TYPE AND Z.EFFDT <= %CurrentDateIn)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Empl Rcd Nbr
Prompt Table: PER_ORG_ASGN_VW |
3 | 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. |
4 | EFFDT | Date(10) | DATE NOT NULL | Effective Date |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |