RE: [SQL] Join operations - Mailing list pgsql-sql

From Jackson, DeJuan
Subject RE: [SQL] Join operations
Date
Msg-id D05EF808F2DFD211AE4A00105AA1B5D2265FF8@cpsmail
Whole thread Raw
List 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@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


pgsql-sql by date:

Previous
From: Mathew White
Date:
Subject: RE: [SQL] Trouble with insert into.
Next
From: Doug Younger
Date:
Subject: trigger to insert on update to non-existing row?