Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: ROWNUM strangeness?--SOLVED

Re: ROWNUM strangeness?--SOLVED

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Thu, 29 Aug 2002 14:04:38 -0800
Message-ID: <F001.004C3530.20020829140438@fatcity.com>


> As for sorting, rownum is assigned before any sorting. However, if the data
> is read via an index, the rownum appears to be assigned after the sort.

Dan,

I wouldn't say that. What *appears* is the sort, which doesn't take place since data is fetched in sorted order. Rownum is assigned in the order data is fetched, as you say elsewhere. I am pretty sure it's clear in your mind, but it may sound confusing to others. When Naveen said that the rows is ALWAYS assigned before sorting, it's true, even in that case since there is no sort (in the 'shuffling of things in memory' acceptance of the word).

-- 
Regards,

Stephane Faroult
Oriole Software
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.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 29 2002 - 17:04:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US