TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Peter Garner
date: 1996-08-01 11:16:59
subject: DB2

Hi,

    A few weeks ago I posted a message asking if anyone could tell me
if there is a way to pick the Nth row of a query.  For example :

select distinct process_date from proc_table order by process_date

How would I get the 6th (or the 7th, 8th, etc.) date in that set?  Trick
is NOT to use a cursor and a loop.  There must be a way to do this
(perhaps using RIDS?) in DB2 or Oracle.

Thanks

Peter

--- WILDMAIL!/WC v4.12 
(1:100/4.0)
* Origin: St. Louis Users Group BBS > TOADNET 878-3029
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 100/4 525 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.