Oracle / PLSQL: SQRT Function

This article is written about how to use the Oracle/PLSQL SQRT function with syntax and examples.

Description

The Oracle/PLSQL SQRT characteristic 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 rectangular root calculation.

Returns

The SQRT function returns a numeric value.

Applies To

The SQRT characteristic 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 discover how to use the SQRT feature in Oracle/PLSQL.

For example:

SQRT(9)
Result: 3

SQRT(37)
Result: 6.08276253029822

SQRT(5.617)
Result: 2.37002109695251