BEN_Q_DP_QUL_VW

(SQL View)
Index Back

Benefits Workcenter Query

Workcenter query for dependents qualified

SELECT DISTINCT E1.EMPLID , N.NAME_DISPLAY , E1.DEPENDENT_BENEF , E1.NAME_DISPLAY , S.OPRID FROM PS_DEP_BEN E , PS_NAMES N , PS_PERS_SRCH_GBL S , PS_DEPENDENT_BENEF E1 WHERE E.BEN_DEP_APPR = 'N' AND S.REG_REGION = 'USA' AND E.EMPLID = E1.EMPLID AND E.DEPENDENT_BENEF = E1.DEPENDENT_BENEF AND E1.DEP_BENEF_TYPE IN ('D', 'O') AND S.EMPLID=E.EMPLID AND E.EMPLID=N.EMPLID AND N.NAME_TYPE='PRI' AND N.EFFDT= ( SELECT MAX(B.EFFDT) FROM PS_NAMES B WHERE B.EMPLID = N.EMPLID AND B.NAME_TYPE = N.NAME_TYPE AND B.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country
3 DEPENDENT_BENEF Character(2) VARCHAR2(2) NOT NULL Dependent Benefit
01=default
4 NAME Character(50) VARCHAR2(50) NOT NULL Name
5 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).