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)
A | B | C |
---|---|---|
1500 | 15 | 100 |
0 | 12 | 0 |
250 | 0 | 0 |
0 | 20 | 0 |
0 | 0 | 0 |
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