Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIy9t-0001Qz-Qs for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Jun 2017 14:11:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dIy9t-00009g-9x for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Jun 2017 14:11:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dIy99-0007G6-2r for pgsql-bugs@postgresql.org; Thu, 08 Jun 2017 14:10:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dIy96-0000KU-IX for pgsql-bugs@postgresql.org; Thu, 08 Jun 2017 14:10:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v58EAd2W011789; Thu, 8 Jun 2017 10:10:39 -0400 From: Tom Lane To: Jean-Yves MARTIN cc: pgsql-bugs@postgresql.org Subject: Re: using WHERE and AND in SELECT In-reply-to: <27B4C0D6-6744-4F25-9DA5-2BAE3AF8B6A3@ec-nantes.fr> References: <27B4C0D6-6744-4F25-9DA5-2BAE3AF8B6A3@ec-nantes.fr> Comments: In-reply-to Jean-Yves MARTIN message dated "Thu, 08 Jun 2017 14:12:07 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11787.1496931039.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 08 Jun 2017 10:10:39 -0400 Message-ID: <11788.1496931039@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jean-Yves MARTIN writes: > We had an issue when writing a SELECT request : we write: > select personne_id from personne inner join conducteur on (conducteur.per= sonne_id=3Dpersonne.personne_id) and personne.personne_id<20 There's no requirement for parentheses around the JOIN condition, so that's perfectly legal. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs