you want to BIT_OR multiple rows. For example you have a table with 3 rows that you want to aggregate with BIT_OR
1010 (10)
1100 (12)
0110 (6)
=========
1110 (14)
Let’s try
with t as (
select 10 n from dual union all
select 12 from dual union all
select 6 from dual)
select
utl_raw.cast_to_binary_integer(
sys.mvaggrawbitor(
utl_raw.cast_from_binary_integer(
n
)
)
) N
from t;
N
---
14
It is that easy !
Tuesday, January 1, 2008
OR aggregate
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment