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