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 -> Re: ** SQL QUERY TUNING

Re: ** SQL QUERY TUNING

From: Andy Tasker <andy_at_spirocom.demon.co.uk>
Date: Fri, 17 Apr 1998 18:25:47 +0100
Message-ID: <892834351.25469.0.nnrp-02.c2de7651@news.demon.co.uk>


You could use a set operation
eg.

select * from table where tab_column = 1 union
select * from table where tab_column is not null

or apply DeMorgans ....

select * from table where
NOT ( tab_column != 1 and tab_column is null)

Andy Tasker
Spirocom Analysts Ltd

Jürgen Kling wrote in message <353770A0.35DD_at_w-4.de>...
>Who can help me to optimize the following SQL-Statement
>
>
>
>select * from table
>
>where tab_column = 1
>
> or tab_column is null
>
>
>
>Thje column TAB_COLUMN having an index, but ORACLE cant't use it. Thus
>
>Oracle do an Full Table scan.
>
>
>
>
>
>jkling_at_w-4.de
Received on Fri Apr 17 1998 - 12:25:47 CDT

Original text of this message

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