---
schema_version: "1"
id: 97df3bff377eaf9c62b80ec4f0234421c46820a1c5b01958aeb55e05f3b71c52
title: sqrt({n})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-math-sqrt.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-sqrt.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2c64f6ea09d21da5f066e30d34ebad8173b61b1bb9403b70fc47b5aa768c8a81
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# sqrt({n})

Returns the square root of a number _n_. The value _n_ can be any non-negative numeric value in the range of 0 \<= _n_ \<= 1.797e308.

`sqrt({n})` takes the following syntax.

```nolang
SELECT sqrt(N) as AliasName
FROM dataset;
```

## Example

This example returns the square root of 64.

```nolang
SELECT sqrt(64.0) as SqrtExample FROM Superstore
LIMIT 1;
```

| SqrtExample |
| ----------- |
| 8.0         |
