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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does Oracle process SQL

Status
Not open for further replies.

Stefanovitch1

Programmer
Nov 4, 2005
2
GB
I have a relatively simple query which references 4 tables. Some of the tables are quite large. Is there a rule as to which tables are accessed first so I could perhaps filter on them first.



[thumbsup2]
 
If you are using outer joins, oracle will follow the order which they appear in your query. With inner joins the optimizer picks what it thinks is the best order. If you want to see what the optimizer chose, use top-session. Sometimes you can force the order by using sub-queries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top