Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 138B24764B8 for ; Thu, 30 May 2002 13:38:24 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 2E3A847638E for ; Thu, 30 May 2002 13:35:42 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id D9360D600; Thu, 30 May 2002 10:35:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id CEF055C01; Thu, 30 May 2002 10:35:37 -0700 (PDT) Date: Thu, 30 May 2002 10:35:37 -0700 (PDT) From: Stephan Szabo To: Wei Weng Cc: Subject: Re: Can you help with this JOIN? In-Reply-To: <1022779024.32670.7.camel@Monet> Message-ID: <20020530103115.C44635-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200205/316 X-Sequence-Number: 7951 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.