Issue raised because the "column2" might contains zero or null value, what we need to do is if column 2 is zero replace it with another fix non zero varible.
- Null issue can be easily solve by using isNull finction, but we don't have 'isZero' function
set column2 to null value if it is zero, outer level if is null replace with variable X.
ISNULL(NULLIF(column2, 0),variableX)
0 comments :
Post a Comment