Not really - an index contains pointers to records in a table, and these
pointers are sorted in order of the values of the field(s) used to create the
index. Think about the index at the back of a book - it refers to, or points
to, pages, but it does not physically sort them.
A table can have multiple indexes, which can be used to speed up queries. A
query which is sorted on fields which have indexes defined will run much
faster than if the sort is on a non-indexed field, and this is particularly
noticeable for queries on very large tables.
An analogy would be a library (in the days before electronic searches).
There are card catalogues which index the books by author, title, and subject,
but the books themselves are sorted on the shelves by (for example) their
Library of Congress numbers. Imagine what you would have to go through to
find all the books from a specific publisher.
John
KARL said:
I thought an index was a sort.
[quoted text clipped - 37 lines]