W3EB_BASURL_VW(SQL View) |
Index Back |
---|---|
BAS Partic Urls for EnrollmentThis record will retrieve a employee's eligible information for enrollment and URL Ids for a specific benefit plan. |
SELECT A.SCHED_ID , A.EMPLID , A.BENEFIT_RCD_NBR , A.EVENT_ID , A.EVENT_DT , A.PLAN_TYPE , A.BENEFIT_PLAN , B.VENDOR_ID , B.GROUP_NBR , B.SMRYPLNDOC_URL_ID , C.POLICY_URL_ID , C.VENDOR_URL_ID FROM PS_BAS_PARTIC_OPTN A , PS_BENEF_PLAN_TBL B , PS_VENDOR_POLICY C WHERE A.PLAN_TYPE = B.PLAN_TYPE AND A.BENEFIT_PLAN = B.BENEFIT_PLAN AND A.HISTORY_ONLY = 'N' AND B.EFFDT <= A.EVENT_DT AND B.EFFDT = (SELECT MAX(E.EFFDT) FROM PS_BENEF_PLAN_TBL E WHERE E.PLAN_TYPE = B.PLAN_TYPE AND E.BENEFIT_PLAN = B.BENEFIT_PLAN AND E.EFFDT <= A.EVENT_DT ) AND B.SETID = C.SETID AND B.VENDOR_ID = C.VENDOR_ID AND ( B.GROUP_NBR = C.GROUP_NBR OR ( B.GROUP_NBR = ' ' AND NOT EXISTS (SELECT 'X' FROM PS_BENEF_PLAN_TBL B2 WHERE A.PLAN_TYPE = B2.PLAN_TYPE AND A.BENEFIT_PLAN = B2.BENEFIT_PLAN AND B2.VENDOR_ID = C.VENDOR_ID AND B2.GROUP_NBR = C.GROUP_NBR AND B2.EFFDT = (SELECT MAX(E.EFFDT) FROM PS_BENEF_PLAN_TBL E WHERE E.PLAN_TYPE = B2.PLAN_TYPE AND E.BENEFIT_PLAN = B2.BENEFIT_PLAN AND E.EFFDT <= A.EVENT_DT ) ))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SCHED_ID | Character(6) | VARCHAR2(6) NOT NULL | Schedule ID |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
3 | BENEFIT_RCD_NBR | Number(3,0) | SMALLINT NOT NULL | Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number. |
4 | EVENT_ID | Number(6,0) | INTEGER NOT NULL | Event Identification |
5 | EVENT_DT | Date(10) | DATE | Event Date |
6 | 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. |
7 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | GROUP_NBR | Character(30) | VARCHAR2(30) NOT NULL | Group Number |
10 | SMRYPLNDOC_URL_ID | Character(30) | VARCHAR2(30) NOT NULL | This field defines a URL ID which can be used to access the Summary Plan Document on file for a Benefit Plan. |
11 | POLICY_URL_ID | Character(30) | VARCHAR2(30) NOT NULL | General Policy URL ID |
12 | VENDOR_URL_ID | Character(30) | VARCHAR2(30) NOT NULL | Authorized Providers URL ID |