- Categories:
Aggregate functions (Counting Distinct Values)
BITMAP_AND_AGG¶
Returns a bitmap that is the result of a bitwise AND operation on all input bitmaps in a group (intersection).
Syntax¶
Arguments¶
bitmapA 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 all input bitmaps in the group.
Examples¶
See Using Bitmaps to Compute Distinct Values for Hierarchical Aggregations.