Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic Indexing Question
Message
From
06/02/2002 14:52:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/02/2002 10:40:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00616049
Message ID:
00616246
Views:
18
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform