Re: Outer Joins - Mailing list pgsql-general

From Brett W. McCoy
Subject Re: Outer Joins
Date
Msg-id Pine.LNX.4.30.0101062023160.8905-100000@chapelperilous.net
Whole thread Raw
In response to Re: Outer Joins  ("Robert B. Easter" <reaster@comptechnews.com>)
List pgsql-general
On Sat, 6 Jan 2001, Robert B. Easter wrote:

> What is the syntax for this?  Is there an example I can see/run?

Should follow standard SQL92 syntax (which, BTW, Oralce doesn't):

SELECT * FROM table1 LEFT OUTER JOIN table2 ON (table1.field =
table2.field)

This will return all rows from table1 even if no corresponding row exists
in table2.  A RIGHT OUTER JOIN would do the opposite.

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
It is better to have loved a short man than never to have loved a tall.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Outer Joins
Next
From: "Robert B. Easter"
Date:
Subject: Re: Outer Joins