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!

Join or Subquery?

26679Mar 5 2002
I'would like to know if is better a normal join between 2 tables or a subquery?
Example:
---SUBQUERY
SELECT big_emp.column
FROM big_emp
WHERE dep_no IN (
SELECT dep_no
FROM big_dept);
---NORMAL JOIN
SELECT big_emp.column
FROM big_emp,big_dept
WHERE big_emp.dep_no = big_dept.dep_no

Which the optimize prefers?...and why?
Bye and thanks a lot, Andrea75 (from Italy)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2002
Added on Mar 5 2002
4 comments
911 views