DIV0
functionsupportedCore SQL functionsPerforms division like the division operator (/), but returns 0 when the divisor is 0 (rather than reporting an error).
Syntax
DIV0( <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, the function returns 0.