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

Home -> Community -> Usenet -> c.d.o.server -> Can I define an index for a select statement.

Can I define an index for a select statement.

From: John Francis Lundy <jflundy_at_aol.com>
Date: Fri, 5 Mar 1999 17:45:52 -0000
Message-ID: <36e01880.0@news.proweb.co.uk>


Primary key - InvoiceNo
Secondary key - InvoiceNo,InvoiceDate

20,000 records

select * from Invoice - 3 seconds

select * from Invoice - 22 seconds
order by InvoiceDate

if the second query used the secondary index it should be faster as they'd be ordered already.
Can I select the index? Whats my problem please help. Received on Fri Mar 05 1999 - 11:45:52 CST

Original text of this message

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