Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting ORA-01427: single-row subquery returns more than one row, however there's no subquery

Alshaimaa AliJan 24 2014 — edited Jan 25 2014

Hello,

I'm getting the error "ORA-01427: single-row subquery returns more than one row" however there's no subquery, my query is like the following syntax:

(select some fields from table1

union all

select some fields from table2) q

where q.col1 =value

and q.value2 = value

when I remove one of the conditions after where it works fine, when I re-add it again it give me that error however "Value" is a static value not a subquery.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2014
Added on Jan 24 2014
9 comments
1,380 views