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

Re: CASE statement not working as desired!

$
0
0

Hi,

 

Try this:

 

SELECT

T1.DocNum

, T1.DocDate

, T0.ItemCode

, T2.ItemName

, case when  T0.[Currency] = '' then  'Na' else T0.[Currency] end as 'Currency'

 

, T0.Price AS 'Price ea (Foreign)'

, T0.Quantity

, T0.LineTotal

 

FROM RPC1 T0

INNER JOIN ORPC T1 ON T1.DocEntry = T0.DocEntry

INNER JOIN OITM T2 ON T2.ItemCode = T0.ItemCode

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 8456

Trending Articles



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