> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> يحسب العدد الدقيق لقيم الوسائط المختلفة.

# uniqExact

<div id="uniqExact">
  ## uniqExact
</div>

استُحدثت في: v1.1.0

تحسب العدد الدقيق للقيم المختلفة للوسيطات.

<Warning>
  تستخدم الدالة `uniqExact` ذاكرة أكبر من `uniq`، لأن حجم الحالة ينمو بلا حدود مع زيادة عدد القيم المختلفة.
  استخدم الدالة `uniqExact` إذا كنت بحاجة فعلية إلى نتيجة دقيقة.
  وإلا، فاستخدم الدالة [`uniq`](/ar/reference/functions/aggregate-functions/uniq).
</Warning>

**الصيغة**

```sql theme={null}
uniqExact(x[, ...])
```

**الوسائط**

* `x` — تأخذ الدالة عددًا متغيرًا من المعاملات. [`Tuple(T)`](/ar/reference/data-types/tuple) أو [`Array(T)`](/ar/reference/data-types/array) أو [`Date`](/ar/reference/data-types/date) أو [`DateTime`](/ar/reference/data-types/datetime) أو [`String`](/ar/reference/data-types/string) أو [`(U)Int*`](/ar/reference/data-types/int-uint) أو [`Float*`](/ar/reference/data-types/float) أو [`Decimal`](/ar/reference/data-types/decimal)

**القيمة المعادة**

تعيد العدد الدقيق لقيم الوسائط المختلفة على هيئة UInt64. [`UInt64`](/ar/reference/data-types/int-uint)

**أمثلة**

**الاستخدام الأساسي**

```sql title=Query theme={null}
CREATE TABLE example_data
(
    id UInt32,
    category String
)
ENGINE = Memory;

INSERT INTO example_data VALUES
(1, 'A'), (2, 'B'), (3, 'A'), (4, 'C'), (5, 'B'), (6, 'A');

SELECT uniqExact(category) as exact_unique_categories
FROM example_data;
```

```response title=Response theme={null}
┌─exact_unique_categories─┐
│                       3 │
└─────────────────────────┘
```

**عدة وسائط**

```sql title=Query theme={null}
SELECT uniqExact(id, category) as exact_unique_combinations
FROM example_data;
```

```response title=Response theme={null}
┌─exact_unique_combinations─┐
│                         6 │
└───────────────────────────┘
```

**انظر أيضًا**

* [uniq](/ar/reference/functions/aggregate-functions/uniq)
* [uniqCombined](/ar/reference/functions/aggregate-functions/uniqCombined)
* [uniqHLL12](/ar/reference/functions/aggregate-functions/uniqHLL12)
* [uniqTheta](/ar/reference/functions/aggregate-functions/uniqthetasketch)
