× 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.



Ed,

If you're using embedded SQL in a HLL (RPG?), then you could use a
scrollable cursor and the fetch relative feature to jump straight to the
41st record in your result set....

I suspect there are examples of this in the archives....

hth,

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-297-2863 or ext. 1863



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of
e.h.doxtator@xxxxxxxxxxxxx
Sent: Thursday, February 09, 2006 4:43 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Retrieve a range of records by number from SQL Select 


All

I have a question regarding retrieval of records from an index.  For
example, my query returns a result of 500 records, but I want to grab
records 41-60.  

Question 1:  Do I have to write a loop that spins through rows 0-40, or
can I position straight to row 41?  

Question 2:  Can I fetch the twenty rows in one operation, or is there a
way to fetch all of the data in one operation?

Thanks

-Ed


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is 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.