> 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: [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).

Reply via email to