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 -> Usage of indexes with greater/lower then operators

Usage of indexes with greater/lower then operators

From: Maoz Mussel <maoz_at_mindcti.com>
Date: Sun, 16 May 1999 18:39:15 +0300
Message-ID: <7hmol0$396$1@news.netvision.net.il>


Hi there,

I have the following xxx table:

     id              NUMBER
     lowerval   NUMBER
     upperval  NUMBER

I have indexes on both fields. When I'm running a query to get rows that falls between
the lower and the upper values, e.g.:
     SELECT id FROM xxx
     WHERE lowerval <= 1000 AND upperval >= 1000

Only one index is used (and it is the index on the upperval column from some reason).
If xxx is a big table, indexes will not help much on such case. My questions are:

Thanks for any info,
Maoz Received on Sun May 16 1999 - 10:39:15 CDT

Original text of this message

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