select *
from ( select a.*, rownum rnum
from ( YOUR_QUERY_GOES_HERE -- including the order by ) a
where rownum <= MAX_ROWS ) where rnum >= MIN_ROWS
Wednesday, March 29, 2006
get the top n rowns from M rows of a Resultset
Posted by Vetriselvan at 3/29/2006 04:06:00 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment