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

Re: Another SQLCMD Question

$
0
0

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


Viewing all articles
Browse latest Browse all 8526

Trending Articles



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