SELECT STID.SALES_TRANS_DATE
,STID.ITEM_ID
,STID.ITEM_QTY
FROM SALES_TRANS_ITEM_DLY AS STID
WHERE STID.SALES_TRANS_DATE between '2011-01-01' and '2012-09-01'
AND STID.ITEM_ID IN( SELECT ID.ITEM_ID
FROM ITEM_DIM AS ID
↧