Re: Can you help with this JOIN?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Wei Weng <wweng(at)kencast(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Can you help with this JOIN?
Date: 2002-05-30 17:35:37
Message-ID: 20020530103115.C44635-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 30 May 2002, Wei Weng wrote:

> But how do I write the LEFT OUTER JOIN if I don't do explicit JOINs on
> the other tables? Can I just do
>
> SELECT x FROM a, b, c, LEFT OUTER JOIN d ON (d.id = a.id)?

I think you'd need to write
SELECT x FROM b,c,a LEFT OUTER JOIN d ON (d.id = a.id)

That should force the outer join first, but give flexibility for the rest
of the joins.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-05-30 17:41:59 Re: Can you help with this JOIN?
Previous Message Wei Weng 2002-05-30 17:16:58 Re: Can you help with this JOIN?