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

Re: Query To Check For Variance Between Stock Code & Supplier Stock Codes

$
0
0

Hi Rahul,

 

SELECT T0.[ItemCode],

T0.[ItemName]

FROM OITM T0 WHERE right(T0.[ItemCode], 8) = T0.[SuppCatNum] and

(T0.[CardCode] = 'S1070' OR T0.[CardCode] = 'S1075')

ORDER By T0.[ItemCode]

 

the right(itemcode, 8) means sql will get the 8 right digits from the itemcode

 

Try it


Viewing all articles
Browse latest Browse all 9369

Trending Articles



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