Hi,
Try this:
SELECT T0.ItemCode,T0.FrgnName, T0.U_Brand, (SELECT max(T1.Price) FROM OITM T0 inner join ITM1 T1 on T0.ItemCode = T1.ItemCode and T1.[PriceList] = '1'),T1.Price, T0.CodeBars, CASE WHEN T2.OnHand - T2.IsCommited > 10 THEN 'Y' ELSE 'N' END FROM OITM T0 inner join ITM1 T1 on T0.ItemCode = T1.ItemCode and T1.[PriceList] = '2' inner join OITW T2 on T0.ItemCode = T2.ItemCode and T2.WhsCode = '01'
Thanks & Regards,
Nagarajan