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 -> Strange behaviour of function based index

Strange behaviour of function based index

From: <g.entelmann_at_t-online.de>
Date: 6 Apr 2004 03:48:30 -0700
Message-ID: <390eb482.0404060248.73c25dd3@posting.google.com>


Hello,

I encountered some strange behaviour of a function based index.

The Index: Create Index FooIndex on Footable(Trunc(aDate));

Executing the following query uses the index:

select Count(aDate) from Footable where Trunc(aDate) = Trunc(Sysdate);

But when I use the query without the 'Count', it uses a full table scan.

Can anyone explain this ??

Gerrit Received on Tue Apr 06 2004 - 05:48:30 CDT

Original text of this message

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