Answers for "replace divide by zero error with 0 in sql"

SQL
0

replace divide by zero error with 0 in sql

#Replace the result of divide by zero with 0

SELECT COALESCE(dividend / NULLIF(divisor,0), 0) 
FROM sometable
Posted by: Guest on June-16-2021

Code answers related to "replace divide by zero error with 0 in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language