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!

using select inside in ()

875638Jul 14 2011 — edited Jul 14 2011
Hi

I am trying to write an sql as below...

select row1, row2,row3 from table1 where row4 in (select row5,row6 from table2 where row7='string');

I know the above syntax is wrong. what i need is, i have to pass two values selected from another table as arguments in, 'in'

please suggest proper syntax to achieve this result.


Thanks,
Aditya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2011
Added on Jul 14 2011
5 comments
118 views