X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EFA5B52914 for ; Mon, 15 Aug 2005 22:48:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01256-04 for ; Tue, 16 Aug 2005 01:48:42 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 987A2528F8 for ; Mon, 15 Aug 2005 22:48:41 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id EDDDD35439; Mon, 15 Aug 2005 18:48:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id EDEF335434; Mon, 15 Aug 2005 18:48:29 -0700 (PDT) Date: Mon, 15 Aug 2005 18:48:28 -0700 (PDT) From: Stephan Szabo To: Dario Bahena Tapia Cc: pgsql-sql@postgresql.org Subject: Re: Parentheses in FROM clause and evaluation order. In-Reply-To: <3d104d6f05081509345067d83b@mail.gmail.com> Message-ID: <20050815183859.U67925@megazone.bigpanda.com> References: <200508110042.j7B0g1TZ015835@panselmo.fciencias.unam.mx> <20050815065906.K33261@megazone.bigpanda.com> <3d104d6f05081509345067d83b@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/109 X-Sequence-Number: 22337 On Mon, 15 Aug 2005, Dario Bahena Tapia wrote: > The final result seems to be the same, I just was curious about the > standard behavior. Does the SQl says something about this execution > order? I believe SQL defines the order to pay attention to parens, so A join (B join C) style clauses result in a "table" being derived from B join C and another from A joined with that table.