Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Finding out last 10 records
You are right, I didn't get that from your post, though
I thought it unlikely you didn't know it. :)
Jared
"Jamadagni, Rajendra" <Rajendra.Jamadagni_at_espn.com>
Sent by: root_at_fatcity.com
08/15/2002 08:53 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Subject: RE: Finding out last 10 records
Jared,
Probably it is not clear from my post, but ROWNUM is still useless WITHOUT an order by. And original poster had no clue on what to order by to start with.
Raj
Rajendra Jamadagni MIS, ESPN Inc.Rajendra dot Jamadagni at ESPN dot com
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
Sent: Thursday, August 15, 2002 2:43 AM
To: Multiple recipients of list ORACLE-L
Rownum is not necessarily useless for this kind of query. In versions of
Oracle (8i+) where an inline view can include an order by, it can be
rather
useful.
Top 5 salaries:
select ename, sal
from (
select ename, sal
from scott.emp
order by sal desc
) a
where rownum < 6
Jared
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Aug 15 2002 - 14:03:46 CDT
- text/plain attachment: InterScan_Disclaimer.txt
![]() |
![]() |