|
Well, your original question was - if there is a unique key and you are searching on "equal", how many records will be processed. If it is unique key, then there is an index (there are no other ways to guarantee unique key). If there is an index and you are searching on "equal", then from index in one step you get a list of values which match - one. I still do not see an issue here. Alexei Pytel speaking for myself "Hall, Philip" <phall@xxxxxxxx> Sent by: midrange-l-bounces@xxxxxxxxxxxx 01/20/2005 07:37 PM Please respond to Midrange Systems Technical Discussion To "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx> cc Subject RE: 'Theoretical' SQL question > If the field is a unique key, it got to be an index. > If it is an index, then table scan is not needed - so there is no issue. > > Do I miss something here? > Yes, my original question. Which was can one assume _100%_ that the processing will stop once the record has been located. -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.