> ## 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.

> 주어진 배열들의 교집합을 반환합니다(모든 배열에 공통으로 포함된 모든 항목을 반환합니다).

# groupArrayIntersect

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

도입 버전: v24.2.0

주어진 배열들의 교집합을 반환합니다(즉, 모든 배열에 공통으로 포함된 모든 항목을 반환합니다).

**구문**

```sql theme={null}
groupArrayIntersect(x)
```

**인수**

* `x` — 인수(컬럼 이름 또는 표현식). [`Any`](/ko/reference/data-types/index)

**반환 값**

모든 배열에 공통으로 포함된 요소를 담은 배열을 반환합니다. [`Array`](/ko/reference/data-types/array)

**예시**

**사용 예시**

```sql title=Query theme={null}
-- Create table with Memory engine
CREATE TABLE numbers (
    a Array(Int32)
) ENGINE = Memory;

-- Insert sample data
INSERT INTO numbers VALUES
    ([1,2,4]),
    ([1,5,2,8,-1,0]),
    ([1,5,7,5,8,2]);

SELECT groupArrayIntersect(a) AS intersection FROM numbers;
```

```response title=Response theme={null}
┌─intersection──────┐
│ [1, 2]            │
└───────────────────┘
```
