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

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

$
0
0

Hi Nagarajan

 

I tried the below

 

SELECT T0.[ItemCode],

T0.[ItemName]

FROM OITM T0 WHERE T0.[ItemCode] <> T0.[SuppCatNum] and

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

GROUP By T0.[ItemCode], T0.[ItemName]

ORDER By T0.[ItemCode]

 

It displays all the stock codes as they all don't have the AD or AT in the supplier code that is in the Item Code

How do I get the query to ignore the AD or AT and check the number only in this format xxx-xxxx

 

Thanks & Regards

Rahul


Viewing all articles
Browse latest Browse all 8556


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