Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Avoid results of subquery as sum of items - topic by Anakin

$
0
0
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

read more


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>