Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to write SQL hints for this query?

Status
Not open for further replies.

kknight2046

Programmer
Jul 6, 2006
17
0
0
US
The query is like:

select * from foo, t
where foo.name in
(select name from bar
where id in (
select id from car
where date < sysdate
)
)
and foo.a = t.b;

I want the innermostsubquery 'select id from car ...' to be executed first, and the subquery 'select name from bar ...' to be execute second, and the outermost query 'select * from foo,t ...' to be executed the last. How can I write the Oracle sql hints to force the order?

Thanks.
 
1. You can't
2. The way you have written it, oracle will execute the code in this manner anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top