Oracle SQRT() function
Description
This function is used to get the square root of a given non-negative number.
Syntax:
SQRT(X)
Where X is a number
Pictorial Presentation of SQRT() function
Example: SQRT() function
SELECT SQRT(25) FROM dual;
Here is the result.
SQRT(25) ---------- 5
The above statement will return the square root of the given number 25.
Example: SQRT() function using negative value
SELECT SQRT(-25) FROM dual;
Here is the result.
SELECT SQRT(-25) FROM dual * ERROR at line 1: ORA-01428: argument '-25' is out of range
The above statement will return an error message because the value of the argument (-25) is negative.
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework