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

Re: Another SQLCMD Question

$
0
0

Hi,

 

Try this query only for price part.

 

SELECT distinct(T0.[ItemCode]), T0.[ItemName],case when T1.[PriceList] = '01' then  T1.[Price] end as Price1, 

case when T1.[PriceList] = '02' then  T1.[Price] end as Price2 FROM OITM T0  INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITW T2 ON T0.ItemCode = T2.ItemCode WHERE T2.[WhsCode] = '01'

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9236

Trending Articles