RE: [SQL] Join operations

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: Tim Holloway <mtsinc(at)southeast(dot)net>, pgsql-sql(at)postgreSQL(dot)org
Subject: RE: [SQL] Join operations
Date: 1999-06-18 15:16:47
Message-ID: D05EF808F2DFD211AE4A00105AA1B5D2265FF8@cpsmail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)southeast(dot)net]
> Sent: Thursday, June 17, 1999 7:26 PM
> To: pgsql-sql(at)postgreSQL(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message Doug Younger 1999-06-18 21:52:26 trigger to insert on update to non-existing row?
Previous Message Mathew White 1999-06-18 14:24:11 RE: [SQL] Trouble with insert into.