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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: index on null column

Re: index on null column

From: Richard Foote <richard.foote_at_telstra.com>
Date: Thu, 27 Mar 2003 16:38:40 -0800
Message-ID: <F001.00574DDF.20030327163840@fatcity.com>


Hi AK,

It depends ...

If you frequently perform searches for not null values on column A and the cardinality of values is such that the optimizer is turned on by the index, then yes, potentially an index could be useful.

Also, with so many nulls, such an index would be relatively small.

Cheers

Richard

> I have a table with column A. there are 1000000 records in table
> out of which 500o records has not null in column A rest are null.
> if i created an index on A, will it benefit .
>
> thanks,
> ak
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Richard Foote
  INET: richard.foote_at_telstra.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 27 2003 - 18:38:40 CST

Original text of this message

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