From: Peter Eisentraut <peter_e@gmx.net>
To: David Witham <davidw@unidial.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: Left outer join on multiple tables
Date: Sun, 11 Jan 2004 20:55:33 +0100
Message-ID: <200401112055.33714.peter_e@gmx.net> (raw)
In-Reply-To: <CFA248776934FD43847E740E43C346D199DB51@ozimelb03.ozicom.com>
References: <CFA248776934FD43847E740E43C346D199DB51@ozimelb03.ozicom.com>
David Witham wrote:
> Is there a way to do left outer joins on more than 2 tables at once
> (3 in my case)? Or do I have to do the first join into a temp table
> and then another join from the temp table to the third table? I can't
> seem to work out the syntax from the User Guide.
SELECT * FROM a LEFT JOIN b ON (...) LEFT JOIN c ON c WHERE ...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: peter_e@gmx.net, davidw@unidial.com.au
Subject: Re: Left outer join on multiple tables
In-Reply-To: <200401112055.33714.peter_e@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox