Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C781E475E83 for ; Tue, 5 Nov 2002 19:52:07 -0500 (EST) Received: from wolff.to (unknown [66.93.197.35]) by postgresql.org (Postfix) with SMTP id 18A31475E4D for ; Tue, 5 Nov 2002 19:52:07 -0500 (EST) Received: (qmail 5804 invoked by uid 500); 6 Nov 2002 01:01:40 -0000 Date: Tue, 5 Nov 2002 19:01:40 -0600 From: Bruno Wolff III To: Jodi Kanter Cc: Postgres Admin List Subject: Re: joins Message-ID: <20021106010140.GA5458@wolff.to> Mail-Followup-To: Jodi Kanter , Postgres Admin List References: <01dd01c28439$a48de480$de138f80@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01dd01c28439$a48de480$de138f80@virginia.edu> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/62 X-Sequence-Number: 6250 On Mon, Nov 04, 2002 at 14:37:42 -0500, Jodi Kanter wrote: > Can anyone tell me if there is any real difference between the two different ways to create tables joins? > > select field1, field2 from table1 join table2 using (field3) > > vs. > > select field1, field2 from table1, table 2 where table1.field3=table2.field3 The first form fixes the join order while the second allows the planner to choose what order to do the joins in. For just two tables this doesn't make a difference.