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