Operators
Operator
/
Operands & returns
3 overloadsleft / right
Operator
In other engines
Used in larger rewrites 2
These examples use / as one part of a larger SQL translation.
BigQuerysafe_divide()
SAFE_DIVIDE(x + 1, 2 * y)
CASE WHEN (2 * y) <> 0 THEN (x + 1) / (2 * y) ELSE NULL END
Snowflakediv0null()
DIV0NULL(a - b, c - d)
CASE WHEN (c - d) = 0 OR (c - d) IS NULL THEN 0 ELSE (a - b) / (c - d) END