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

# APPROX_QUANTILES

> APPROX_QUANTILES in Query Engine SQL.

<Note>
  This function isn't in the updated function reference yet. The details below come from the previous docs, and the product team is confirming them.
</Note>

## Syntax

APPROX\_QUANTILES( \<expr>, number )

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
select approx_quantiles(colA, 4) from table1
```

Returns the approximate boundaries for a group of `<expr>`values, where `number` represents the number of quantiles to create. This function returns an array of `number` + 1 element, where the first element is the approximate minimum and the last element is the approximate maximum.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.