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 -> Re: UNION: SQL-tuning

Re: UNION: SQL-tuning

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Thu, 12 Sep 2002 12:47:55 +0200
Message-ID: <alprdu$rsc$1@ctb-nnrp2.saix.net>

Andrei Romazanov wrote:

> That is why I thought, that optimizer-strategy for table t1 from
> q1 is like one for q1 union q2.

No. A UNION is _not_ the same as SELECT. A UNION is effectively a SELECT DISTINCT. Thus your argument is flawed. CBO will not treat the SELECT on the table and the SELECT as part of a UNION the same.

--
Billy
Received on Thu Sep 12 2002 - 05:47:55 CDT

Original text of this message

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