Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Sep 26, 2023
Send us feedback
sqrt
Applies to: Databricks SQL Databricks Runtime
Returns the square root of expr.
expr
sqrt(expr)
expr: An expression that evaluates to a numeric.
A DOUBLE.
If expr is negative the result is NaN.
> SELECT sqrt(4); 2.0
cbrt function