Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubexU-003doH-JC for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 12:40:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ubexR-001iEc-6w for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 12:40:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubexQ-001iEU-Sg for pgsql-general@lists.postgresql.org; Tue, 15 Jul 2025 12:40:29 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ubexP-007PBS-2O for pgsql-general@lists.postgresql.org; Tue, 15 Jul 2025 12:40:28 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id A6D882A14D6 for ; Tue, 15 Jul 2025 05:40:26 -0700 (PDT) Date: Tue, 15 Jul 2025 05:40:26 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Syntax error needs explanation [RESOLVED] In-Reply-To: Message-ID: <5b1a5cd6-ab6b-1067-3f5e-29118fc208b@appl-ecosys.com> References: <9c84776d-d938-9fa4-ab1-6ee960ce6e7d@appl-ecosys.com> <9c62a6d5-14a-802-b869-6386d7e050fb@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 15 Jul 2025, Laurenz Albe wrote: > Apart from that, the subquery seems to be missing a GROUP BY clause. Laurenz, That was added. Thanks, Rich