W3EB_HLTHBIN_VW(SQL View) |
Index Back |
---|---|
Plan Type Vendor ViewGrabs the Vendor Name for 1x plan type transactions |
SELECT R.PLAN_TYPE , R.BENEFIT_PLAN , R.EFFDT , R.VENDOR_ID , R.DESCR , R.DESCR , R.GROUP_NBR , O.SETID , O.NAME1 FROM PS_BENEF_PLAN_TBL R , PS_VENDOR O WHERE R.VENDOR_ID = O.VENDOR_ID AND R.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_BENEF_PLAN_TBL E WHERE E.PLAN_TYPE = R.PLAN_TYPE AND E.BENEFIT_PLAN = R.BENEFIT_PLAN AND E.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | 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. |
2 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
3 | EFFDT | Date(10) | DATE | Effective Date |
4 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | PLAN_NAME | Character(30) | VARCHAR2(30) NOT NULL | Plan Name |
7 | GROUP_NBR | Character(30) | VARCHAR2(30) NOT NULL | Group Number |
8 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
9 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |