totn Oracle Functions

Oracle / PLSQL: SQRT Function

This Oracle tutorial explains how to use the Oracle/PLSQL SQRT function with syntax and examples.

Description

The Oracle/PLSQL SQRT function returns the square root of n.

Syntax

The syntax for the SQRT function in Oracle/PLSQL is:

SQRT( n )

Parameters or Arguments

n
A positive number that is used in the square root calculation.

Returns

The SQRT function returns a numeric value.

Applies To

The SQRT function can be used in the following versions of Oracle/PLSQL:

  • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i

Example

Let's look at some Oracle SQRT function examples and explore how to use the SQRT function in Oracle/PLSQL.

For example:

SQRT(9)
Result: 3

SQRT(37)
Result: 6.08276253029822

SQRT(5.617)
Result: 2.37002109695251