BITMAP_AND

functionsupportedCore SQL functions

docs.snowflake.com ↗

Aggregate functions

Returns a bitmap that is the result of a bitwise AND operation on two input bitmaps.

Syntax

BITMAP_AND( <bitmap1> , <bitmap2> )

Parameters

NameRequiredDescription
bitmap1requiredA bitmap returned by the BITMAP_CONSTRUCT_AGG, BITMAP_OR_AGG, or other bitmap functions.
bitmap2requiredA bitmap returned by the BITMAP_CONSTRUCT_AGG, BITMAP_OR_AGG, or other bitmap functions.

Returns

A BINARY value representing a bitmap with only the bits set that are present in both input bitmaps.

See also