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 -> IS (NOT) NULL

IS (NOT) NULL

From: Tom Miskiewicz <miskiewicz2_at_yahoo.com>
Date: Sun, 23 Nov 2003 15:18:13 +0100
Message-ID: <bpqfkm$u27$1@news.gatel.net>


Hi!

I have a varchar2 column, that can be null and I need to use it in a count() query. What is the most efficient way to do it? Currently I'm doing it this way, but I'm not sure if there is a way to improve it.

SELECT COUNT(1) FROM mytable WHERE an_indexed_column = 0 and not_indexed_column IS NOT NULL;

Thanks
Tom Received on Sun Nov 23 2003 - 08:18:13 CST

Original text of this message

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