luvtitans50
MIS
Syntax error converting the varchar value 'N/A' to a column of data type int.
Warning: Null value is eliminated by an aggregate or other SET operation.
I am getting the above error when running the below statement:
Case when sum(newpositions) = 0 then 'N/A'
when sum(numerator) = 0 then '100%'
ELSE
sum(numerator)/NULLIF(sum(newpositions),0) END as timetofillpctg
Please advise.
Thanks,
Warning: Null value is eliminated by an aggregate or other SET operation.
I am getting the above error when running the below statement:
Case when sum(newpositions) = 0 then 'N/A'
when sum(numerator) = 0 then '100%'
ELSE
sum(numerator)/NULLIF(sum(newpositions),0) END as timetofillpctg
Please advise.
Thanks,