Hi,
I'm trying to update the BITWISE field based on the DONT_CALL field... If the value in dont_call column is exist in any of the column P1,P2,P3 then the BITWISE column has to be updated by condition...

Ex For first row In dont_call column i have 67890 , it is exist in P2 so the expected result in BITWISE column is 010...
I have tried
SELECT
DECODE(BITAND(P1,1), dont_call, 1, 0)||
DECODE(BITAND(P2,1), dont_call, 1, 0)||
DECODE(BITAND(P3,1), dont_call, 1, 0) test
FROM test_bit_wise;
But the result comes differently...

Thanks in advance
Infant