Description
Performs division like the division operator (/), but returns 0 when the divisor is 0 (rather than reporting an error)
Syntax
DIV0(dividend, divisor)
Parameters
| Parameter | Description | Required |
|---|---|---|
| dividend | Numeric expression that evaluates to the value that you want to divide | Yes |
| divisor | Numeric expression that evaluates to the value that you want to divide by | Yes |
Example
SELECT DIV0(additions, additions-additions) as ratio,
FROM rippling.githubPullRequest.GithubPullRequest;