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

Home -> Community -> Usenet -> c.d.o.tools -> check for null value in sql query

check for null value in sql query

From: Cobra__77 <Cobra__77_at_hotmail.com>
Date: Sun, 20 Aug 2000 04:49:40 GMT
Message-ID: <ErJn5.5826$Xg.60273@news-server.bigpond.net.au>

I have query like this...

select *
from custTab
where custStatus is null or custStatus > sysdate

I store date in custStatus column.

The above query causes a full table
scan in oracle... because I use "is null" and also "or"...is there an alternative way to do this...

any suggestions/comments...
thanks.. Received on Sat Aug 19 2000 - 23:49:40 CDT

Original text of this message

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