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

Re: hello experts

$
0
0

little more refined query (Items you use in sales order but never use in A/R invoice)

 

 

SELECT distinct T0.[ItemCode], T0.[ItemName], t0.onhand as 'in stock', t1.ItmsGrpNam,t2.IsCommited as 'Commited Sales Order Qty' FROM [dbo].[OITM] T0 inner join oitb t1 on t0.ItmsGrpCod = t1.ItmsGrpCod

inner join OITW t2 on t0.ItemCode = t2.ItemCode

WHERE t0.OnHand > 0 and t2.IsCommited > 0 and

(ISNULL( T0.[ItemCode],'') not in (select isnull(itemcode,'') from inv1))


Viewing all articles
Browse latest Browse all 8378

Trending Articles



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