Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8720

Re: Distinct Values Sum

$
0
0

Hi Ravi,

 

Try this,

 

SELECT T0.[DocNum], T0.[ItemCode], T1.ITEMNAME, Sum (T0.[CmpltQty]) 'Qty'

FROM OWOR T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE

WHERE T0.[PostDate] BETWEEN '[%0]' AND '[%1]' AND T0.[CmpltQty] > '0.00'

Group By T0.[DocNum], T0.[ItemCode], T1.ITEMNAME

 

Hope this helps you.

 

Regards,

Rahul


Viewing all articles
Browse latest Browse all 8720

Trending Articles



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