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: Stop Criteria for Sql Execution

RE: Stop Criteria for Sql Execution

From: Goulet, Dick <DGoulet_at_vicr.com>
Date: Mon, 7 Mar 2005 11:47:28 -0500
Message-ID: <4001DEAF7DF9BD498B58B45051FBEA6502422AD2@25exch1.vicorpower.vicr.com>


Waleed,

        The answer is staring you right in the face, namely "column1 is null". Nulls do not get into indexes therefore the only way to find them is with a full table scan. And if your going to go through all the trouble of scanning the whole table in the first place, what sense does an index scan for any other part of the query make.

-----Original Message-----

From: Khedr, Waleed [mailto:Waleed.Khedr_at_FMR.COM]=20 Sent: Monday, March 07, 2005 11:38 AM
To: oracle-l_at_freelists.org
Subject: Stop Criteria for Sql Execution=20

Why does Oracle have to execute the sql and scan data in a table for a sql like this:

Select * from table
Where column1 is null and column1=3D3D10

Or=3D20

Select * from table
Where column1=3D3D10 and column1=3D3D20

All the research money going to optimize the optimizer, and still can't take care of simple stuff like this.

Am I missing something?

I will probably start searching for smarter databases :)

Waleed
--

http://www.freelists.org/webpage/oracle-l
--

http://www.freelists.org/webpage/oracle-l Received on Mon Mar 07 2005 - 11:52:09 CST

Original text of this message

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