PV_CUP_ITEMS_VW(SQL View) |
Index Back |
---|
SELECT M.SETID , M.INV_ITEM_ID , M.CATEGORY_ID , M.UNIT_MEASURE_STD , M.LAST_DTTM_UPDATE , P.PO_AVAIL_DT , %Coalesce(P.PO_UNAVAIL_DT, %DateIn('2999-12-31')) , P.DESCR , P.PRICE_LIST , P.MODEL , P.DESCR254_MIXED , P.AVAIL_ALL_RGNS , C.DESCR60 FROM PS_MASTER_ITEM_TBL M , PS_PURCH_ITEM_ATTR P , PS_PV_CP_LOAD L , PS_ITM_CAT_TBL C , PS_INSTALLATION_PO I WHERE M.SETID = P.SETID AND M.INV_ITEM_ID = P.INV_ITEM_ID AND M.SETID = L.SETID AND M.INV_ITEM_ID = L.INV_ITEM_ID AND L.PV_CP_ITM_STATUS = '6' AND L.INV_ITEM_ID <> ' ' AND I.CATEGORY_TYPE = C.CATEGORY_TYPE AND M.CATEGORY_ID = C.CATEGORY_ID AND M.SETID = C.SETID AND C.EFFDT = ( SELECT MAX(J.EFFDT) FROM PS_ITM_CAT_TBL J WHERE C.SETID = J.SETID AND C.CATEGORY_TYPE = J.CATEGORY_TYPE AND C.CATEGORY_CD = J.CATEGORY_CD AND C.CATEGORY_ID = J.CATEGORY_ID AND J.EFFDT <= %CurrentDateIn) |
# | 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 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
4 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
5 | LAST_DTTM_UPDATE | DateTime(26) | TIMESTAMP | Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts. |
6 | PO_AVAIL_DT | Date(10) | DATE | PO Available Date |
7 | PO_UNAVAIL_DT | Date(10) | DATE | PO Unavailable Date |
8 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
9 | PRICE_LIST | Number(16,5) | DECIMAL(15,5) NOT NULL | Standard Price |
10 | MODEL | Character(30) | VARCHAR2(30) NOT NULL | Model |
11 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
12 | AVAIL_ALL_RGNS | Character(1) | VARCHAR2(1) NOT NULL | Available in All Regions |
13 | CATDESCR | Character(60) | VARCHAR2(60) NOT NULL | Category Description |