PV_ITMCAT_VW

(SQL View)
Index Back

SELECT A.SETID ,A.INV_ITEM_ID ,C.TREE_NAME FROM PS_MASTER_ITEM_TBL A , PSTREENODE C , PS_ITM_CAT_TBL J , PSTREEDEFN Z WHERE A.ITM_STATUS_CURRENT = '1' AND A.SETID = C.SETID AND A.SETID = J.SETID AND A.CATEGORY_ID = J.CATEGORY_ID AND J.EFFDT = ( SELECT MAX(EFFDT) FROM PS_ITM_CAT_TBL WHERE SETID = J.SETID AND CATEGORY_ID = J.CATEGORY_ID AND CATEGORY_CD = J.CATEGORY_CD AND EFFDT <= %CurrentDateIn) AND J.CATEGORY_CD = C.TREE_NODE AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PSTREENODE WHERE SETID = C.SETID AND EFFDT <= %CurrentDateIn AND TREE_NAME = C.TREE_NAME) AND C.TREE_NAME = Z.TREE_NAME AND C.EFFDT = Z.EFFDT AND C.SETID = Z.SETID AND Z.EFF_STATUS = 'A' AND Z.TREE_STRCT_ID = 'ITEMS'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name