PV_PERF_MTN3_VW

(SQL View)
Index Back

SELECT A.SETID ,A.INV_ITEM_ID ,E.MFG_ID ,E.MFG_ITM_ID ,I.DESCR60 ,A.CATEGORY_ID ,A.UNIT_MEASURE_STD ,F.DESCR ,A.DESCR60 ,T.TREE_NAME ,F.PRICE_LIST ,F.CURRENCY_CD FROM PS_MASTER_ITEM_TBL A , PS_ITEM_MFG E , PS_MANUFACTURER I , PS_PURCH_ITEM_ATTR F , PS_ITM_CAT_TBL J LEFT OUTER JOIN PS_PV_CAT_TREE_TBL T ON (J.SETID = T.SETID AND J.CATEGORY_CD = T.TREE_NODE) WHERE A.SETID = E.SETID AND A.INV_ITEM_ID = E.INV_ITEM_ID AND E.SETID = I.SETID AND E.MFG_ID = I.MFG_ID AND E.PREFERRED_MFG = 'Y' AND A.ITM_STATUS_CURRENT = '1' AND A.SETID = F.SETID AND A.INV_ITEM_ID = F.INV_ITEM_ID AND F.SUBITEM_ONLY <> 'Y' AND ((%CurrentDateIn >= F.PO_AVAIL_DT) AND (F.PO_UNAVAIL_DT > %CurrentDateIn )) AND A.INV_ITEM_ID NOT IN( SELECT INV_ITEM_ID FROM PS_MASTER_ITEM_TBL WHERE A.ITM_STAT_DT_FUTURE <= %CurrentDateIn AND A.ITM_STATUS_FUTURE <> '1') 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 (EXISTS ( SELECT 'X' FROM PS_INSTALLATION_PV WHERE PV_NONDYNAMICRANGE = 'Y') AND (((A.INV_ITEM_ID >= T.RANGE_FROM AND A.INV_ITEM_ID <= T.RANGE_TO) AND T.DYNAMIC_RANGE = 'N') ) OR NOT EXISTS ( SELECT 'X' FROM PS_INSTALLATION_PV WHERE PV_NONDYNAMICRANGE = 'Y'))

# 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 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
4 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
5 DESCR_MFG Character(60) VARCHAR2(60) NOT NULL Manufacturer description
6 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
7 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description
10 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
11 PRICE_LIST Number(16,5) DECIMAL(15,5) NOT NULL Standard Price
12 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency