Oracle® OLAP DML Reference 11g Release 1 (11.1) Part Number B28126-01 |
|
|
View PDF |
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).
Return Value
INTEGER
Syntax
BITAND (argument1 , argument2)
Arguments
A nonnegative INTEGER
expression.
A nonnegative INTEGER
expression.
Examples