SELECT A.SETID , A.INV_ITEM_ID , A.LANGUAGE_CD , A.DESCR , A.DESCR254_MIXED , C.DESCR60 FROM PS_PURCH_ITEM_LANG A , PS_MASTER_ITEM_TBL B , PS_ITM_CAT_TBL_LNG C , PS_INSTALLATION_PO F WHERE A.SETID = B.SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.SETID = C.SETID AND B.CATEGORY_ID = C.CATEGORY_ID AND A.LANGUAGE_CD = C.LANGUAGE_CD AND C.CATEGORY_TYPE = F.CATEGORY_TYPE AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_ITM_CAT_TBL D WHERE D.SETID = C.SETID AND D.CATEGORY_TYPE = C.CATEGORY_TYPE AND D.CATEGORY_CD = C.CATEGORY_CD AND D.CATEGORY_ID = C.CATEGORY_ID AND D.EFFDT <= %CurrentDateIn)
|