I'm getting an error message "divisor is equal to zero'
following is my code snippet;
select
nvl(total_records,0)/nvl(l2y_sum_ees,1)
from emp
column l2y_sum_ees has some nulls in there. I'm taking care of the nulls in my formula. I don't understand that why I'm still getting this error. How else could I specify to replace null with 1 for the divisor.
Thanks in advance