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

Home -> Community -> Usenet -> c.d.o.misc -> Re: which is faster?

Re: which is faster?

From: TurkBear <johng_at_nospam.mm.com>
Date: Thu, 21 Jan 1999 18:34:07 GMT
Message-ID: <36a772fb.13569932@news2.mm.com>

If col1 is indexed the first should be faster....

Mary Orcutt <mary_at_globeset.com> wrote:

>I was wondering which of the following would be more efficient?
>
> select min(col1) from table1
>or
> select col1 from table1 order by col1 (and just get the first
>record)
>
>The first is what we started with and seems really slow with a
>table of a thousand records. col1 is a varchar(40) field.
>
>Thanks for any help.
>Mary
>

To reply please remove the 'nospam' part of the address Received on Thu Jan 21 1999 - 12:34:07 CST

Original text of this message

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