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

> دالة تجميع تحسب مواضع مرات ظهور الدالة maxIntersections.

# maxIntersectionsPosition

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

أُضيفت في: v1.1.0

دالة تجميع تحسب مواضع حالات ظهور الدالة [`maxIntersections`](/ar/reference/functions/aggregate-functions/maxIntersections).

**البنية**

```sql theme={null}
maxIntersectionsPosition(start_column, end_column)
```

**الوسيطات**

* `start_column` — عمود رقمي يمثّل بداية كل فترة. إذا كانت قيمة `start_column` هي `NULL` أو 0، فسيتم تجاهل الفترة. [`(U)Int*`](/ar/reference/data-types/int-uint) أو [`Float*`](/ar/reference/data-types/float)
* `end_column` — عمود رقمي يمثّل نهاية كل فترة. إذا كانت قيمة `end_column` هي `NULL` أو 0، فسيتم تجاهل الفترة. [`(U)Int*`](/ar/reference/data-types/int-uint) أو [`Float*`](/ar/reference/data-types/float)

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

يعيد مواضع البداية لأكبر عدد من الفترات المتداخلة. [`Any`](/ar/reference/data-types/index)

**أمثلة**

**العثور على موضع أكبر عدد من تداخلات الفترات**

```sql title=Query theme={null}
CREATE TABLE my_events (
    start UInt32,
    end UInt32
)
ENGINE = MergeTree
ORDER BY tuple();

INSERT INTO my_events VALUES
(1, 3),
(1, 6),
(2, 5),
(3, 7);

SELECT maxIntersectionsPosition(start, end) FROM my_events;
```

```response title=Response theme={null}
┌─maxIntersectionsPosition(start, end)─┐
│                                    2 │
└──────────────────────────────────────┘
```
