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

> 일련의 숫자에 비트 단위 `AND`를 적용합니다.

# groupBitAnd

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

도입 버전: v1.1.0

숫자 집합에 비트 단위 AND를 적용합니다.

**구문**

```sql theme={null}
groupBitAnd(expr)
```

**별칭**: `BIT_AND`

**인수**

* `expr` — `(U)Int*` 타입의 표현식입니다. [`(U)Int*`](/ko/reference/data-types/int-uint)

**반환 값**

`(U)Int*` 타입의 값을 반환합니다. [`(U)Int*`](/ko/reference/data-types/int-uint)

**예시**

**비트 단위 AND 예시**

```sql title=Query theme={null}
CREATE TABLE t (num UInt32) ENGINE = Memory;
INSERT INTO t VALUES (44), (28), (13), (85);

-- 테스트 데이터:
-- 이진수     십진수
-- 00101100 = 44
-- 00011100 = 28
-- 00001101 = 13
-- 01010101 = 85

SELECT groupBitAnd(num) FROM t;
```

```response title=Response theme={null}
-- 결과:
-- 이진수     십진수
-- 00000100 = 4

┌─groupBitAnd(num)─┐
│                4 │
└──────────────────┘
```
