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!

Filtering in JOIN clause - any performance issues ?

452507May 23 2007 — edited May 23 2007
Does filtering rows in the JOIN clause rather than the WHERE clause make any difference to query performance - is it slower ? e.g.

--filter in JOIN
select *
from tableA join tableB on tableA.OrderID = tableB.OrderID AND tableB.Status = "XYZ"

--filter in WHERE
select *
from tableA join tableB on tableA.OrderID = tableB.OrderID
where tableB.Status = "XYZ"

As a matter of style, I much prefer joins in the join clause, and filtering in the WHERE clause, but other developers are filtering in the JOIN clause. The brief tests I've done seem give the same query plan for a simple queries like this, but does anyone know for sure ? I don't know what more complex queries might do.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2007
Added on May 23 2007
3 comments
623 views