Заменить раздел на нулевую ошибку на 0 в SQL
#Replace the result of divide by zero with 0
SELECT COALESCE(dividend / NULLIF(divisor,0), 0)
FROM sometable
Kwams
#Replace the result of divide by zero with 0
SELECT COALESCE(dividend / NULLIF(divisor,0), 0)
FROM sometable