BAS_CMP_TMP_TYP

(SQL View)
Index Back

Plan types with comp templates

List benefit program plan types that have comparison templates

SELECT DISTINCT B.BENEFIT_PROGRAM ,B.PLAN_TYPE ,XLATLONGNAME FROM PS_BEN_DEFN_PLAN A , PS_BEN_DEFN_OPTN B ,PSXLATITEM X WHERE A.BENEFIT_PROGRAM = B.BENEFIT_PROGRAM AND A.PLAN_TYPE = B.PLAN_TYPE AND A.BAS_CMP_TMPL_ID > ' ' AND B.BENEFIT_PLAN > ' ' AND A.EFFDT = B.EFFDT AND X.FIELDNAME = 'PLAN_TYPE' AND X.FIELDVALUE = B.PLAN_TYPE AND X.EFFDT = ( SELECT MAX(EFFDT) FROM PSXLATITEM X1 WHERE X.FIELDNAME = X1.FIELDNAME AND X.FIELDVALUE = X1.FIELDVALUE)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BENEFIT_PROGRAM Character(3) VARCHAR2(3) NOT NULL Defines a collection of benefit plans and their associated rate and calculation rules.

Prompt Table: BEN_DEFN_PGM

2 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.
3 XLATLONGNAME Character(30) VARCHAR2(30) NOT NULL Translate Long Name