Juergen,
This might be a matter of SQL semantics. I would have thought that based on how your query is written, the join you indicate should have looked like this:
and power(2, seg.segment) & uu.segmap > 0
not
and power(2, segment) & uu.segmap > 0
Did you try it both ways. Does it give the same results?
Personally, I always qualify column names, to avoid problems.
Regards,
Jean-Pierre
P.S. Sorry, but like I said, I cannot test right now.