Re: SELF LEFT OUTER JOIN = SELF JOIN including NULL values - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: SELF LEFT OUTER JOIN = SELF JOIN including NULL values
Date
Msg-id 4C939845.5030601@iol.ie
Whole thread Raw
In response to SELF LEFT OUTER JOIN = SELF JOIN including NULL values  (julia.jacobson@arcor.de)
List pgsql-general
On 17/09/2010 17:16, julia.jacobson@arcor.de wrote:
> Hello everybody out there using PostgreSQL,
>
> After having read the official documentation and having done
> extensive web search, I'm wondering how to perform something like a
> SELF LEFT OUTER JOIN in PostgreSQL, i.e. a SELF JOIN on a table
> containing NULL values in one of the columns to join.

Something like this? -

select....
from my_table a
left join my_table b on (a.my_column = b.my_column)
...

Would this do it?

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: julia.jacobson@arcor.de
Date:
Subject: SELF LEFT OUTER JOIN = SELF JOIN including NULL values
Next
From: Sam Mason
Date:
Subject: Re: SELF LEFT OUTER JOIN = SELF JOIN including NULL values