I am trying to run the following query, using Oracle 10:
select intel from Intel intel where intel in (select intel from Intel intel where intel.city.name = 'Rome' order by intel.city.name asc)
However, I am getting "ORA-00907: missing right parenthesis". Clearly, this is not because a right parens is missing. I know that this error is sometimes caused by a bug (http://www.dba-oracle.com/sf_ora_00907_missing_right_parenthesis.htm), but my version of Oracle is after the bug has been patched.
Any thoughts on what I could be doing wrong?
Thanks!
Edit: I know the query is redundant, but I specifically need to test a functionality where I am dynamically modifying subqueries at runtime, and the above is written just to test this functionality in the simplest way possible, even if it doesn't add expressivity.