|
-
 Originally Posted by malay_biswal
Yes Indexes affect performance of joins. Assume this logic where
For (in 1 to 1000)
select salary from emp where emp_number:=B1
End loop
In this case the inner query will be accessed by emp_number index and query will be faster.
If in this case there is a index SKIP scan on emp table then that means emp_number is not the leading column on the index.
I think it doesnt explain this:
do the indexes affect the performance of join queries? If so,how?
---i mean the indexes on columns of driving table and driven table.
suppose i have indices test1 on column d_id of table e and test2 on column d_id of table d..
Then how will the following query use indices test1 and test2 in any way?
select * from d,e where e.d_id=d.d_id;
Last edited by mahajanakhil198; 02-17-2009 at 05:46 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|