2020-06-18 08:24:31 +00:00
---
2022-08-28 14:53:34 +00:00
slug: /en/sql-reference/aggregate-functions/reference/uniqexact
2024-06-24 11:52:30 +00:00
sidebar_position: 207
2020-06-18 08:24:31 +00:00
---
2022-06-02 10:55:18 +00:00
# uniqExact
2020-06-18 08:24:31 +00:00
Calculates the exact number of different argument values.
``` sql
uniqExact(x[, ...])
```
2020-07-09 15:10:35 +00:00
Use the `uniqExact` function if you absolutely need an exact result. Otherwise use the [uniq ](../../../sql-reference/aggregate-functions/reference/uniq.md#agg_function-uniq ) function.
2020-06-18 08:24:31 +00:00
The `uniqExact` function uses more memory than `uniq` , because the size of the state has unbounded growth as the number of different values increases.
2021-02-15 21:33:53 +00:00
**Arguments**
2020-06-18 08:24:31 +00:00
The function takes a variable number of parameters. Parameters can be `Tuple` , `Array` , `Date` , `DateTime` , `String` , or numeric types.
**See Also**
2023-04-19 15:55:29 +00:00
- [uniq ](../../../sql-reference/aggregate-functions/reference/uniq.md#agg_function-uniq )
- [uniqCombined ](../../../sql-reference/aggregate-functions/reference/uniq.md#agg_function-uniqcombined )
- [uniqHLL12 ](../../../sql-reference/aggregate-functions/reference/uniq.md#agg_function-uniqhll12 )
- [uniqTheta ](../../../sql-reference/aggregate-functions/reference/uniqthetasketch.md#agg_function-uniqthetasketch )