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!

Order of joins in sql queries

751751Feb 12 2010 — edited Feb 12 2010
Which order of table joining does Oracle choose in queries?
For example there is a quiery:
table1 left join table2 inner join table3
Obviuosly, results depend on the order of joining:
Queries:
(table1 left join table2) inner join table3
and
table1 left join (table2 inner join table3)
can give different results (the first can return zero records, the second returns at least records from table1).
In real life I need to join many tables, so I should know how to interpret the results.

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2010
Added on Feb 12 2010
4 comments
740 views