PL_PI_ITMCAT1VW

(SQL View)
Index Back

Category ID by ProbInst

Used to get Category Code

SELECT DISTINCT A.PROBINST , A.CATEGORY_ID , D.CATEGORY_CD FROM PS_PL_BU_ITEMS A , PS_SET_CNTRL_REC C , PS_ITM_CAT_TBL D WHERE C.RECNAME = 'ITM_CAT_TBL' AND C.SETID = D.SETID AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND A.CATEGORY_ID = D.CATEGORY_ID AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_ITM_CAT_TBL D1 WHERE D1.SETID = D.SETID AND D1.CATEGORY_TYPE = D.CATEGORY_TYPE AND D1.CATEGORY_ID = D.CATEGORY_ID AND D1.EFF_STATUS = 'A' AND D1.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PROBINST Character(20) VARCHAR2(20) NOT NULL Optimization Problem Instance

Prompt Table: SP_PRBINS_NONVW

2 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
3 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code