×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Yeah, I'm really thinking there was some function or whatnot that would
number each row returned.

It's not RID or RRN.

(Lots of research later...)

Try this:

select row_number() over(order by rrn(a)),
rrn(a), rid(a), a.*
from rob.darryl a
ROW_NUMBER RRN ( A ) RID ( A ) MYCOL
1 1 1 D
2 2 2 D
3 4 4 F
4 5 5 G

So you can do stuff like

With T1 as (
select row_number() over(order by rrn(a)) as rowN, a.*
from rob.darryl a )
select t1.*
from t1
where rowN between 1 and 3
ROWN MYCOL
1 D
2 D
3 F



Rob Berendt

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