i made those changes, with the same result (ora-6502). any ideas why the query by itself is okay, but as an inline view the query fails?