- Categories:
Aggregate functions (Counting Distinct Values)
BITMAP_AND¶
Returns a bitmap that is the result of a bitwise AND operation on two input bitmaps.
Syntax¶
Arguments¶
bitmap1A bitmap returned by the BITMAP_CONSTRUCT_AGG, BITMAP_OR_AGG, or other bitmap functions.
bitmap2A 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.
Examples¶
See Using Bitmaps to Compute Distinct Values for Hierarchical Aggregations.