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: Left and Right Joins

Re: Left and Right Joins

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Mon, 7 Sep 1998 18:56:24 +0200
Message-ID: <6t135f$kid$1@newton.a2000.nl>


Suppose your table Addresses has a person's name as the primary key, but might not have an address for each person.

Left join:

    select a.name, b.address
    from persons a
    , addresses b
    where b.name (+) = a.name;

Right join:

    where a.name = b.name (+);

Innerjoin:

    where a.name = b.name;

Arjan. Received on Mon Sep 07 1998 - 11:56:24 CDT

Original text of this message

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