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: Join Predicate Question

Re: Join Predicate Question

From: Candido Dessanti <termy_at_blunet.it>
Date: Thu, 19 Sep 2002 13:46:13 +0200
Message-ID: <3D89B905.60307@blunet.it>


> Select
> From Claims C Inner Join
> Members M
> On C.EmpID = M.EmpID
> and C.BirthDt >= '1980-01-01'
>
>
> Is that more efficient that placing the additional predicate in a Where
> clause? I guess I'm trying to find out if there is any difference
> between that statement and this one:
>
> Select
> From Claims C Inner Join
> Members M
> On C.EmpID = M.EmpID
> Where C.BirthDt >= '1980-01-01'
>

Maybe in the first statement oracle first reads the records from table Claims and apply the filter so the rows returned for the join with the other table are fewer than the second case and the resulting join is lighter.

Try both query with explain plan and see if there is a difference in the resulting plan. Received on Thu Sep 19 2002 - 06:46:13 CDT

Original text of this message

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