BEN_PLANURL_VW

(SQL View)
Index Back

Summary Urls

This record will retrieve a employee's benefit plan URL Ids for a specific benefit plan.

SELECT A.EMPLID , A.EMPL_RCD , P.PLAN_TYPE , B.BENEFIT_PLAN , B.VENDOR_ID , B.GROUP_NBR , B.SMRYPLNDOC_URL_ID FROM PS_BEN_PROG_PARTIC A , PS_BEN_DEFN_PLAN P , PS_BENEF_PLAN_TBL B WHERE A.BENEFIT_PROGRAM=P.BENEFIT_PROGRAM AND P.PLAN_TYPE = B.PLAN_TYPE AND B.EFFDT <= %CurrentDateIn AND B.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_BENEF_PLAN_TBL E WHERE E.PLAN_TYPE = B.PLAN_TYPE AND E.EFFDT <= %CurrentDateIn) AND P.EFFDT <= %CurrentDateIn AND P.EFFDT = ( SELECT MAX(PP.EFFDT) FROM PS_BEN_DEFN_PLAN PP WHERE PP.PLAN_TYPE=P.PLAN_TYPE AND PP.BENEFIT_PROGRAM=P.BENEFIT_PROGRAM AND PP.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 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.
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 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
5 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
6 GROUP_NBR Character(30) VARCHAR2(30) NOT NULL Group Number
7 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.