Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: IF statement syntax in SQL script view

$
0
0

I don't thing IF is supported here. Would case statement help you ?

 

select MATNR ,

CASE 

  WHEN "ERSDA" > '20130405' THEN 'Y'

  ELSE 'N'

  END as "TEST"

from "SAPXX"."MARA"; You can change your IF condition this way.

 

Sree

 

Message was edited by: Sreehari V Pillai


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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