Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 |
|
|
PDF · Mobi · ePub |
The BITAND function computes a logical AND
operation on the bits of two nonnegative values. This function is commonly used with the DECODE function.
An AND operation compares two bit values. When the values are the same, the operator returns 1. When the values are different, the operator returns 0. Only significant bits are compared. For example, an AND operation on the integers 5 (binary 101) and 1 (binary 001 or 1) compares only the rightmost bit, and results in a value of 1 (binary 1).
INTEGER
BITAND (argument1 , argument2)
A nonnegative INTEGER
expression.
A nonnegative INTEGER
expression.