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!

a union query with parameter from upper table

igweNov 15 2010 — edited Nov 15 2010
Hi all, I have a challenging query to write.

Something like this:

select a.name, b.car, c.dog
from al a, bl b, cl d
union
select '' name, '' car, f.dog
from fl f
where f.dog_id = c.dog_id (using dog_id from upper union)

Is something like this possible? Or is there a better way to write it?
Many thanks
This post has been answered by Frank Kulash on Nov 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2010
Added on Nov 15 2010
5 comments
1,357 views