ANSI join types

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>
Subject: ANSI join types
Date: 2002-08-14 03:12:18
Message-ID: 200208140312.g7E3CI124506@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs


I got this list from Gavin Roy's presentation at O'Reilly. Is there a
good spot for this summary?

Also, I can not find documentation on UNION JOINS in our docs.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> SELECT
> * JOINS
>
> * Cross: All combinations of rows are used
> * Inner: Only rows where matches are found are retained
> * Left (Outer): Returns all rows from table A, matched or not, and
> only rows from table B where matches are found
> * Right (Outer): Inverse of Left, returns all rows from table B and
> only matches from table A
> * Full: A combination of left and right. Where matches are not
> found, NULLs fill the columns of the other table
> * Union: This is different than the UNION operator used to merge the
> output of multiple queries. This is the inverse of an Inner, only
> rows are returned when no matches are found
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2002-08-14 04:55:53 Re: ANSI join types
Previous Message Tom Lane 2002-08-08 13:58:26 Re: tableoid