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



Select (fields) from (file) order by (X Y desc Z desc )

Sort the columns in descending sequence


Paul Therrien
Orion South, Inc.
504-374-9551
800-437-7173
ptherrien@xxxxxxxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren
Sent: Friday, May 18, 2012 12:31 AM
To: Midrange Systems Technical Discussion
Subject: Re: SQL scrolling back to a record

Right...but if the select was:

select id where emp = '1111'

And emp '1111' had 100 records in it, then the record set would have 100 records, so the question (rephrased) is:

Given the above record set (100 records of emp '1111') how do I:

1) Locate the ONE record where the date is '5-17-2012'?
2) Move the cursor from that position to the record just prior?

Still Googling for an answer will post back when I find it (hopefully).


Pete Helgren
Value Added Software, Inc
www.petesworkshop.com
GIAC Secure Software Programmer-Java


On 5/17/2012 7:52 PM, Luis Rodriguez wrote:
Pete,

AFAIK, a scrollable cursor is valid only for the current record set,
so if at first you position your file in the id 1005 you couldn't read
a prior record using cursors.

Best Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries
--
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 thread ...

Replies:

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.