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!

Multiple select statements in a view

JayMay 17 2017 — edited May 17 2017

Hi,

I have a question regarding writing an oracle view.

I have a requirement in which, I have refer a table1 and if i find information from that, I have return as part of view1.

And if table1 does not return a value, I have to query table2 and provide the result set.

I wanted to write 2 select statements like a plsql block, but as a create view has only one select statement, I'm little confused.

Any suggestion is appreciated.

Thank you.

Jay

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2017
Added on May 17 2017
2 comments
951 views