Maybe here:
Code:
WHERE SQL.radioaddress = 
DECODE(greatest(rac.radioaddress(+), 20000000)
, 20000000, to_char(rac.radioaddress(+))
, BBLG.CONVERSION.to_hex(rac.radioaddress(+)))