Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Is SQL 7 optimiszer smart enough ?!
Hello all,
I propose all of you one puzzle:
Problem:
Consider one table with col1,col2 (with 23.682 records) with non-cluster
index on col2
Run this query with show stat i/o on (in SQL 7):
select col1
from
table
order by
col2
The result was:
(23682 row(s) affected)
Query:
1)Which of the above results have been returned by using table scan and which one by using the index on col2 ? . 2)Does the optimiser used table scan or the index ?.
I am looking forward ... Received on Fri Sep 03 1999 - 10:11:25 CDT
![]() |
![]() |