HR_SRCH_SEC_VW2

(SQL View)
Index Back

Security View for Company

Security view for Company and Normal PPLJOB accesstype 1 and 3 used in SES -Review Garnishment.

SELECT DISTINCT OPR.ROWSECCLASS ,SEC.EMPLID ,SEC.EMPL_RCD FROM PS_SJT_PERSON SEC , PSOPRDEFN OPR , PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE SEC.APPT_TYPE IN ('0', '3') AND CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'Y' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID AND SOC.CLASSID = OPR.ROWSECCLASS AND SOC.SEC_RSC_FLG = '1' UNION ALL SELECT DISTINCT OPR.ROWSECCLASS ,SEC.EMPLID ,SEC.EMPL_RCD FROM PS_SJT_PERSON SEC , PSOPRDEFN OPR , PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE SEC.APPT_TYPE IN ('0', '3') AND CLS.SCRTY_SET_CD = 'PPLJOB' AND SEC.SCRTY_TYPE_CD='004' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'N' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID UNION ALL SELECT DISTINCT OPR.ROWSECCLASS ,SEC.EMPLID ,SEC.EMPL_RCD FROM PS_SJT_PERSON SEC , PSOPRDEFN OPR , PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE SEC.APPT_TYPE IN ('0', '3') AND CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'Y' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID AND SOC.CLASSID = OPR.ROWSECCLASS AND SOC.SEC_RSC_FLG = '3'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 ROWSECCLASS_NEW Character(30) VARCHAR2(30) NOT NULL New Row Security Permission List
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record