> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/numeric/sqrt",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for SQRT function

# SQRT

export const QueryWindow = ({content}) => {
  const {sql, result} = content;
  const [inited, setInited] = useState(false);
  const buttonRef = useRef(null);
  useEffect(() => {
    if (!inited && buttonRef.current) {
      runQuery(buttonRef.current, true);
      setInited(true);
    }
  }, []);
  return <div className="query-window">
      <div className="query-toolbar">
        <button className="run-button" onClick={ev => runQuery(ev.target)} ref={buttonRef}>Run Query</button>
        <span className="window-title">Interactive SQL Playground 🔥</span>
      </div>
      <div className="query-content">
        <pre><code className="firebolt-sql language-sql" contentEditable="true" spellCheck="false" data-original-query={sql}>{sql}</code></pre>
        <script type="application/json" className="fallback-result" style={{
    display: "none"
  }}>{JSON.stringify(result)}</script>
        <div className="server-unavailable-banner query-window-hidden">
          The Firebolt playground server is currently unavailable. Using precomputed query results.
        </div>
        <div className="query-results"></div>
      </div>
    </div>;
};

Returns the square root of a numeric expression.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SQRT(<value>);
```

## Parameters

| Parameter | Description                                  | Supported input types |
| :-------- | :------------------------------------------- | :-------------------- |
| `<value>` | Value that the `SQRT` function is applied to | `DOUBLE PRECISION`    |

## Notes

* When input value is integer data type, it is implicitly converted to `DOUBLE PRECISION`.
* When input value is `NUMERIC`, the `SQRT` function returns an error.
* When input value is negative, the `SQRT` function returns an error.

## Return Types

`DOUBLE PRECISION`.

## Example

The following example returns the square root of 64:

<QueryWindow
  content={{
"sql": "SELECT SQRT(64);",
"result": {
"data": [
  [
    8
  ]
],
"meta": [
  {
    "name": "?column?",
    "type": "double"
  }
],
"query": {
  "query_id": "4b313712-db15-4c81-9de8-c5a59ae45a5c",
  "query_label": null,
  "request_id": "d60d94be-60fd-4bdd-8d2c-e94660ccf420"
},
"rows": 1,
"statistics": {
  "bytes_read": 1,
  "elapsed": 0.007499,
  "rows_read": 1,
  "scanned_bytes_cache": 0,
  "scanned_bytes_storage": 0,
  "time_before_execution": 0.000278222,
  "time_to_execute": 9.6639e-05
}
}
}}
/>
