DIV0NULL
functionsupportedCore SQL functionsPerforms division like the division operator (/), but returns 0 when the divisor is 0 or NULL (rather than reporting an error or returning NULL).
Syntax
DIV0NULL( <dividend> , <divisor> )
Parameters
| Name | Required | Description |
|---|---|---|
dividend | required | Numeric expression that evaluates to the value that you want to divide. |
divisor | required | Numeric expression that evaluates to the value that you want to divide by. |
Returns
The quotient. If the divisor is 0 or NULL, the function returns 0.