× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What would you expect?  Making the presumption that the optimizer has to 
perform a table scan, it doesn't know how many, or where, any matching records 
might be.  Resulting in the entire table being read.  It's no different than 
reading through an unsorted file with a program looking for records with a 
specific key.  I don't think it has anything to do with which database product 
you are using.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Hall, Philip
Sent: Thursday, January 20, 2005 3:41 PM
To: Midrange Systems Technical Discussion
Subject: RE: 'Theoretical' SQL question


Thanks for the info Kevin.

It's a sad state of affairs, and no wonder why SQL Server simply out performs 
both DB2 and Oracle...

--phil

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
> bounces@xxxxxxxxxxxx] On Behalf Of Kevin Wright
> Sent: Thursday, January 20, 2005 3:14 PM
> To: 'Midrange Systems Technical Discussion'
> Subject: RE: 'Theoretical' SQL question
>
> >From what I can work out it does even worse for WHERE RRN(CUSTOMERS) =
> 12345
> ... can you pronounce full table scan from rrn 1 to rrn last, not stopping
> at 12345 ... and apparently IBM is not going to improve it.
>
> Kevin Wright


Privileged and Confidential.  This e-mail, and any attachments there to, is 
intended only for use by the addressee(s) named herein and may contain legally 
privileged or confidential information.  If you have received this e-mail in 
error, please notify me immediately by a return e-mail and delete this e-mail.  
You are hereby notified that any dissemination, distribution or copying of this 
e-mail and/or any attachments thereto, is strictly prohibited.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.