Yes, by either using SQL tricks involving internal sorting of various kinds or by using the "new" syntax introduced in 8i, where you can have top, bottom and much more. It's part of the DW stuff and the socalled SQL99 syntax, I think.
If your purpose of this is to find the segments that are about to run out of extents, I suggest you just change the storage parameters so that you don't run out of extents and then skip all this work :). Mogens Rahul wrote: >i hv written a pl/sql to print out the 5 largest segments (max number of >extents) >from each of the tbs present in a DB... can this is done using sql too ? >just curious... > >regards > > > -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mogens =?ISO-8859-1?Q?N=F8rgaard?= INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
