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 -> Re: Creating Indexes

Re: Creating Indexes

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Wed, 17 Nov 1999 23:07:16 +0100
Message-ID: <942876503.19312.0.pluto.d4ee154e@news.demon.nl>


The query will not run faster while you have inequality on the last column. It will not use the index, as the index on field1,field2 is already sufficient.

Hth,

--
Sybrand Bakker, Oracle DBA
Praveen Mohanan <praveen_mohanan_at_hotmail.com> wrote in message news:942856189.920138_at_sj-nntpcache-1.cisco.com...
> Hi. DBA Gurus,
>
>
> I have a select stmt,
>
> select ....
> from table1_at_ERP_ABC
> where table1.fields1 = 'XYZ'
> and table1.field2 = 'STU'
> and table1.field3 != 'AAAA';
>
>
> The query is very slow. And i found that there is no index on the
composite
> column (field1, field2, field3). But there are other indexes on (field1,
> field2) & another one on (field3). If i create a index on (field1, field2,
> field3), will the query run faster?
>
> Regards
>
>
Received on Wed Nov 17 1999 - 16:07:16 CST

Original text of this message

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