bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server SQRT() Function

Concept visual

SQL Server SQRT() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the square root of a number:

SELECT SQRT(64);

Definition and Usage

The SQRT() function returns the square root of a number.

Syntax

Sqrt(

number )

Parameter Values

Parameter

Description number

Required. A positive number to calculate the square root of

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Return the square root of a number:

SELECT SQRT(13);

Previous

❮ SQL Server Functions

Next

Previous

SQL Server SIN() Function

Next

SQL Server SQUARE() Function