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: Is this JOIN good ?

Re: Is this JOIN good ?

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Mon, 16 Oct 2006 21:50:36 +0100
Message-ID: <iur7j2pcv7r1k686pid53rrjj8civrdl6d@4ax.com>


On Mon, 16 Oct 2006 13:11:50 -0700, DA Morgan <damorgan_at_psoug.org> wrote:

>Charles Hooper wrote:
>> klabu wrote:
>>> Assuming you don't know anything about these 3 tables beyond FK & PK
>>>
>>> select *
>>> from A, B, C
>>> where A.fk = C.pk
>>> and B.fk = C.pk
>>>
>>> Is this JOIN "complete" ?
>>> or an additional predicate is needed between A and B ?
>>
>> Transitive closure:
>> A = C
>> B = C
>> Logic states that this implies that:
>> A = B
>>
>> Perform a 10053 trace, you may see the Cost Based optimizer adding a
>> constraint like this:
>> A.FK = B.FK
>
>Which, if it were true, would indicate a bad design.

 In what way do you believe it indicate this?

-- 
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Mon Oct 16 2006 - 15:50:36 CDT

Original text of this message

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