The SQRT()
function returns the square root of a non-negative number. Figure 1 shows the mathematical representation of the SQRT()
function.
SQRT(number)
SQRT()
requires a non-negative number as a parameter.
SQRT()
returns the square rooof the number sent as a parameter. If a parameter is a negative number, it returns
NULL`.
/*example showing how to use SQRT(X)*/-- positive numberselect SQRT(4);-- negative numberselect SQRT(-6);-- fractional numberselect SQRT(4.6);