statistics

bit_and

Combine integers by bitwise AND. NULL inputs are skipped; empty input returns NULL.

Formal Syntax & Structure

sql syntaxsql
bit_and(integer)

Working Example

Example Snippetsql
SELECT bit_and(v) FROM (VALUES (1),(2),(6)) AS t(v);
SQL Reference