An index on order by and group by columns speeds up your query.
Prakash
-----Original Message-----
Sent: Tuesday, June 05, 2001 10:21 AM
To: Multiple recipients of list ORACLE-L
the order by
Dear list,
Someone ask me when Oracle is doing a sort, will it make a difference if we
use indexed column and non-indexes column in the order by clause, my initial
thinking was index only speed up the retrieval of data from disk, Oracle
probably using other algorithm in sorting records, so indexing is not
relevant in that case. Can someone shed light on this question.
KC
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bala, Prakash
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).