|
Thomas,
If one has an index built over the customer number, and the only thing read is the customer number then the entire table is not read, just the index. For example, if I do this
select count(*), itemclass
from itemmaster
group by itemclass
and there is an index over the itemclass then the engine reads only the index and doesn't touch the physical file.
I believe that is true for a Primary or unique index built into the table as well.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.