From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Tim Holloway <mtsinc@southeast.net>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Join operations
Date: Fri, 18 Jun 1999 10:16:47 -0500
Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2265FF8@cpsmail> (raw)
SELECT a.*, b.* FROM a, b WHERE a.c=b.c
UNION ALL
SELECT a.*, NULL, NULL, ... WHERE NOT EXISTS(SELECT 1 FROM b WHERE a.c=b.c);
Hope this helps,
-DEJ
> -----Original Message-----
> From: Tim Holloway [SMTP:mtsinc@southeast.net]
> Sent: Thursday, June 17, 1999 7:26 PM
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] Join operations
>
> Until the true SQL JOIN clauses become operative are there equivalents in
> the existing PostgresSQL SQL? I'm particularly interested in LEFT OUTER
> JOIN.
>
> TIA,
> Tim Holloway
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: djackson@cpsgroup.com, mtsinc@southeast.net
Subject: Re: [SQL] Join operations
In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D2265FF8@cpsmail>
References: <D05EF808F2DFD211AE4A00105AA1B5D2265FF8@cpsmail>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox