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

Home -> Community -> Usenet -> c.d.o.server -> Optimization of a query with NVL in the where part

Optimization of a query with NVL in the where part

From: Antonio Sant <asant_at_iol.it>
Date: Mon, 21 May 2001 18:53:15 GMT
Message-ID: <vudO6.1880$h9.73350@news.infostrada.it>

Hi there!

Suppose we have tab_a and tab_b: 2 column the first 4 the second and we want to do this query:

Select tab_b.c3,tab_a.c2
 From tab_a,tab_b
Where nvl(tab_a.c1,tab_a.c2) = nvl(tab_b.c1,tab_b.c2)

What can we do?
It's quite simple to write, but when the table become HUGE...

Hope for help! Received on Mon May 21 2001 - 13:53:15 CDT

Original text of this message

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