SQRT() Function in SQL Server Last Updated : 30 Dec, 2020 Comments Improve Suggest changes Like Article Like Report SQRT() function : This function in SQL Server is used to return the square root of a specified positive number. For example, if the specified number is 81, this function will return 9. Features : This function is used to find the square root of a given number. This function accepts only positive numbers. This function also accepts fraction numbers. This function always returns positive number. This function use the formula " (a)1/2 = Returned value ", where a is the specified number. Syntax : SQRT(number) Parameter : This method accepts a parameter as given below : number : Specified positive number whose square root is going to be returned. Returns : It returns the square root of a specified positive number. Example-1 : Getting the square root of the specified number 4. SELECT SQRT(4); Output : 2.0 Example-2 : Getting the square root of the specified number 0. SELECT SQRT(0); Output : 0.0 Example-3 : Using SQRT() function with a variable and getting the square root of the specified number 1. DECLARE @Parameter_Value INT; SET @Parameter_Value = 1; SELECT SQRT(@Parameter_Value); Output : 1.0 Example-4 : Getting the square root of 16 which is the result of "64/4". SELECT SQRT(64/4); Output : 4.0 Example-5 : Using SQRT() function with a variable and getting the square root of float value "4.7". DECLARE @Parameter_Value FLOAT; SET @Parameter_Value = 4.7; SELECT SQRT(@Parameter_Value); Output : 2.16794833886788 Application : This function is used to return the square root of a specified positive number. Comment More infoAdvertise with us Next Article SQRT() Function in SQL Server K Kanchan_Ray Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads STR() Function in SQL Server The STR() function converts a numeric value to a character value. Syntax : STR(float_expression [, length [, decimal]]) Parameter : This method accepts three parameters as mentioned above and described below : float_expression : It is a numeric expression that evaluates to an approximate number with 1 min read SUM() Function in SQL Server The SUM() function in SQL Server is an essential aggregate function used to calculate the total sum of values in a numeric column. It aggregates data by summing up all values in the specified column for the rows that match the criteria of the query.In this article, We will learn about SUM() Function 3 min read YEAR() Function in SQL Server The YEAR() function in SQL Server is a powerful tool designed to extract the year component from a given date or datetime expression. It allows users to isolate the year as an integer value and facilitating various date-related operations and analyses.In this article, We will learn about the YEAR() 2 min read UPPER() function in SQL Server The UPPER() function in SQL Server is a useful tool for converting all characters in a string to uppercase. This function is essential for ensuring uniform text formatting and for performing case-insensitive comparisons.In this article, We will learn about the UPPER() function in SQL Server by under 3 min read SIGN() Function in SQL Server In SQL Server, the SIGN() function is a mathematical function used to determine the sign of a given numeric expression. This function is particularly useful when we want to evaluate whether a number is positive, negative or zero. In this article, We will learn about SIGN() Function in SQL Server in 3 min read Like