Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is this JOIN good ?
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 ?
>
>
> thanks
Oracle is able to infer A.fk=B.fk if that is your question.
See "Transitive Closure" ch 6, pg 141 in "Cost Based Oracle Fundamentals" by Jonathan Lewis. Received on Mon Oct 16 2006 - 18:18:35 CDT