BEN_PLANVND_VW

(SQL View)
Index Back

Plan Type Vendor View

Get the vendor name for a plan type

SELECT R.PLAN_TYPE , R.BENEFIT_PLAN , R.EFFDT , R.SMRYPLNDOC_URL_ID , 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 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.
5 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
7 PLAN_NAME Character(30) VARCHAR2(30) NOT NULL Plan Name
8 GROUP_NBR Character(30) VARCHAR2(30) NOT NULL Group Number
9 SETID Character(5) VARCHAR2(5) NOT NULL SetID
10 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1