BITMAP_BIT_POSITION

See: Understanding How Bitmaps Identify Distinct Values.

Syntax

BITMAP_BIT_POSITION( <expr> )

Parameters

expr

A numeric expression

Returns

Returns the zero-based position of the numeric input in a bitmap (fixed length = 10000).

Example

SELECT input, BITMAP_BIT_POSITION(input) FROM T

input

BITMAP_BIT_POSITION

0

0

1

1

9999

9999

10000

0

-1

9999