Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
SQL Server Articles
Submit Article
Home
»
Articles
»
SQL Server
»
Math Functions
RSS Feeds
SQRT Function
Posted By:
Sarita Patel
Category:
SQL Server
Views:
2462
This article explains SQUARE function of sql server with examples.
SQRT function is used to calculate square root of the specified number.
Syntax of SQRT Function :
SQRT (
float_expression
)
float_expression
is a numeric value of type float.
Return type
of SQUARE function is float.
Examples of SQRT Function :
Example 1 : Use of SQRT function in select clause
SELECT
SQRT(25)
Output
5
Above example returns square root of specified numeric value 25.
Share:
Previous Post:
PI Function
Next Post:
POWER Function
Didn't find what you were looking for? Find more on
SQRT Function
Or get
search suggestion and latest updates
.
Sarita Patel
author of SQRT Function is from
United States
.
View All Articles
Related Articles and Code:
Program to calculate roots of 3 numbers using root1 = (-b + sqrt(discriminant))/(2.0*a) and root2 = (-b - sqrt(discriminant))/(2.0*a) formula
Program to calculate roots of 3 numbers using root1 = (-b + sqrt(discriminant))/(2.0*a) and root2 = (-b - sqrt(discriminant))/(2.0*a) formula
Calculate Economic Order Quantity EOQ = sqrt( (2* demand rate * setup costs)/(holding cost per item per unit time)
For a certain electrical circuit with an distance L and resistance R, the damped natural frequency is given by Frequency = sqrt((1/L*C)
Find Economic Order Quantity for a single item is given by EOB = sqrt(2 * demand rate * setup costs/holding costiong per item unit time)
Program of nesting member functions, private member functions and array of objects
Example 4 of using function and local variables in functions
Write a function to perform string operation i.e. split, join, length, substring using pointer without using any string function
Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception
Program to read numbers from two files using fscanf function and write it in another file using fprintf function in ascending order
Function to find the binary equivalent of a given decimal integer and display it
Program of matrix multiplication using function
Program of matrix addition using function
Program to find the length of a string taken from user without using strlen function
Program to implement Add and Subtract functions on Big Number Class
Program to illusrate data conversion user defined data types using functions
Program to illustrate the functions returning pointers
Program to illustrate passing structures to function
Program to illustrate over-riding of base class member function in a derived class
Program to interchange the values of two int , float and char using function templates
Other Interesting Articles in SQL Server:
LIKE Operator
@@ROWCOUNT - ROWCOUNT Function
DATABASEPROPERTY Function
@@PROCID - PROCID Function
LOG Function
SQUARE Function
PARSENAME Function
DAY Function
ATAN Function
VARP Function
@@PACK_RECEIVED - PACK_RECEIVED Function
CEILING Function
SQL Server Tutorial
Not Operator
@@MAX_PRECISION - MAX_PRECISION Function
@@CONNECTIONS - CONNECTIONS Function
ACOS Function
ROUND Function
DATALENGTH Function
RAND Function
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
SQL Server
View All
Aggregate Functions
Analytical Functions
Configuration Function...
Constraints
Cursor
Cursor Functions
Data Control Language
Data Definition Lang
Data Manipulation Lang
Data Type
Database
Date Time Functions
Functions
Index
Interview FAQ
Joins
Math Functions
Meta Data Functions
Miscellaneous
Operator
Rowset Functions
Security Functions
Select Query
Sequence
Stored Procedures
String Functions
Sub Query
System Functions
System Statistical Fun...
Text and Image Functio...
Transaction Control La...
Trigger
View
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint