When we join more than 2-3 tables in a query, and if we have a common column in all the tables, will there be any difference in the performace when we
specify the value to the common columns in all the tables.
for ex:
select e.* from emp e, dept d where e.deptno = 10 and d.deptno = 10;
give value to one of the common column and join with the other
for ex:
select e.* from emp e, dept d where e.deptno = 10 and d.deptno = e.deptno;
The reason for asking this question is, I have a query(cost is 17), which executes when I specify the values as in example 1 but gets hung and never executes if I join the columns as in example 2.
Please help me understand this.