SQL Flow Field Guide

SQRT

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

math

What changes

Input
numeric arguments
Output or change
numeric value
Return type
float

Syntax at a glance

SQRT ( float_expression )

Work example

Find the square root of a nonnegative numeric measurement.

Reject negative input before calling SQRT when the value comes from source data.

Check your work SQRT of a negative value returns a domain error.

Practice SQL

Open in SQL Flow
SELECT SQRT(CAST(81 AS float)) AS root_value;

Open Microsoft Learn for full syntax, permissions, and details for your version.