SQRT (SQL Server Compact)

Returns the square root of the given expression.

Syntax

SQRT (float_expression )

Arguments

  • float_expression
    An expression whose type can be implicitly converted to float.

Return Value

float

Example

The following example returns the square root of the freight charges from the Orders table.

SELECT Freight, SQRT(Freight) AS "Square root of Freight"
FROM Orders