Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

how to use Case statement instead of If statement for calculated columns in HANA

$
0
0

Hello Techies,

 

I have an issue with creating a logic in case statement instead of  if statement in HANA.

 

Scenario:

 

I have two columns a, b  I have created a calculated column C= if ((a!=0 and b!=0), a/b,0)

 

ABC
150015100
0120
25000
0200
000

 

I want to  create logic with case statement    case(?)  = if ((a!=0 and b!=0), a/b,0)

 

As a performance issue i have to create a case statement insteat of if statement. I am trying but not able to find a solution.

 

Please help me !

 

Thanks in Advance.

 

Raja


Viewing all articles
Browse latest Browse all 8800


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