>Hi,
>
>I have a very basic indexing question that I should probably know the answer to but I don't. I know that indexing is great for when using the seek command and things like that. But does indexing also speed up sql statements? Say we have a table called employee and have an index on "emp_no". Then we have an SQL statement, 'select * from employee where emp_no > "500"' If we had an index would the query run faster?
>
>Its not big deal, I was just curious.
>
>Chris
Any available index will automatically be used for a SQL - SELECT. The rule is: use an index, whether it makes the query faster, or slower. Usually, of course, the index helps speed things up. For the exceptions, see my FAQ #8109.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)