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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Where clause and cartesian product

Re: Where clause and cartesian product

From: Hari <excel_hari_at_yahoo.com>
Date: 13 Dec 2005 22:06:20 -0800
Message-ID: <1134540380.102231.153660@g14g2000cwa.googlegroups.com>


Mark,

> your SQL statement is the equivalent of
>
> select job_id, dept_name
> from employees e join departments d using (dept_id)
>
> which is the equivalent of
>
> select job_id, dept_name
> from employees e join departments d on (d.dept_id = e.dept_id)
>
> they are all different valid syntaxes for an inner join, and the oracle
> optimizer determines the most efficient way to retrieve the rows, using any
> available indexes to reduce the amount of data examined (no cartesian
> products are involved in any joins, no matter the syntax)

Thanks for your patient exposition. I feel much better off in understanding different ways of writing the same select command.

> (also you'll do well not top-posting... it gets folks in these forums kinda
> ticked off)
>

Thanks again for the lead. Would resort to inline replies from now on.

regards,
Hari
India Received on Wed Dec 14 2005 - 00:06:20 CST

Original text of this message

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