HR_TBH_SEC_SRCH

(SQL View)
Index Back

TBH security search record

Template Based Hire search record

SELECT DISTINCT SEC.TBH_TMPL_ID ,OPR.OPRID ,OPR.ROWSECCLASS ,SP.CATEGORY_CD ,SP.TBH_PER_ORG ,SP.COUNTRY , ACT.DESCR50 FROM PSOPRDEFN OPR , PS_SJT_CLASS_ALL CLS , PS_HR_TBH_CFG_SJT SEC , PS_SJT_OPR_CLS SOC , PS_HR_TBH_TMPL_CFG SP , PS_HR_TBH_TMPL_HDR ACT WHERE (CLS.SCRTY_SET_CD = 'TBHTMPL' ) 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 SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID AND (( CLS.TREE = 'Y' AND SOC.CLASSID = OPR.ROWSECCLASS AND ( SOC.SEC_RSC_FLG = '1' OR SOC.SEC_RSC_FLG = '3') ) OR ( CLS.TREE = 'N' ) ) AND SP.TBH_TMPL_ID = SEC.TBH_TMPL_ID AND SP.EFFDT = SEC.EFFDT_NOKEY AND ACT.TBH_TMPL_ID = SEC.TBH_TMPL_ID AND ACT.TBH_TMPL_STATUS = 'A' AND %EffdtCheck(HR_TBH_TMPL_HDR ACT1, ACT, %CurrentDateIn)

  • Related Language Record: HR_TBH_SEC_SRCL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 TBH_TMPL_ID Character(18) VARCHAR2(18) NOT NULL Template ID
    2 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    3 ROWSECCLASS Character(30) VARCHAR2(30) NOT NULL The class used to determine row level security
    4 CATEGORY_CD Character(10) VARCHAR2(10) NOT NULL Category Code
    5 TBH_PER_ORG Character(3) VARCHAR2(3) NOT NULL Organizational Relationship
    CWR=Contingent Worker
    EMP=Employee
    6 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
    7 DESCR50 Character(50) VARCHAR2(50) NOT NULL Description of length 50