|
------------------------------
message: 9
date: Sun, 27 Jul 2008 05:12:57 +0000
from: vhamberg@xxxxxxxxxxx
subject: Re: SQL - RRN() not in order
Luis
Someone earlier thought that the optimizer might use an
index if there is a high percentage of deleted records -
the index would not have any entries for the deleted
records and would, therefore, be faster for getting all the
active records.
Now that may have been just a guess but it makes sense -
did the message that said the index was used give any
further information?
Vern
-------------- Original message --------------
From: Luis Rodriguez <luis.rodriguez2@xxxxxxxxx>
Terrence,the only way to guarantee
I agree (and am very conscious of) with the fact that
a result ordered is with the ORDER BY clause.using an index for reporting
That said, what I don't really understand is SQL
the RRN(). One would imagine that kind of things wouldbe better doing a table
scan.included--that if
Regards,
Luis Rodriguez
IBM Certified Systems Expert
eServer i5 iSeries Technical Solutions
--- On Sat, 7/26/08, midrange-l-request@xxxxxxxxxxxx
wrote:
------------------------------
message: 2
date: Sat, 26 Jul 2008 00:13:35 -0400
from: Terrence Enger
subject: Re: SQL - RRN() not in order
Let me remind people--I confess, myself
that orderyou want
results in a specific order, you must specify
guarantee anyexplicitly.
Even selecting from a keyed logical does not
happens thatparticular
sequence.
This is hard to remember because it so often
the system
will choose a strategy which returns rows in the
"right" order by
accident. Sigh!
Cheers,
Terry.
------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.