Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5ZW1-0003oi-HY for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 20:05:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5ZW0-0004Dc-GP for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 20:05:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5ZW0-0004DU-7G for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 20:05:24 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5ZVy-0003Ch-AZ for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 20:05:23 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 9B1872A0107 for ; Mon, 19 Jul 2021 13:05:20 -0700 (PDT) Date: Mon, 19 Jul 2021 13:05:20 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Formating psql query output In-Reply-To: Message-ID: References: <4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) 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 Mon, 19 Jul 2021, Adrian Klaver wrote: > You need them in the JOIN and/or WHERE sections, but not necessarily in the > field list in the SELECT portion. Adrian, I wondered about that and thought I needed to include them in the SELECT phrase. Thanks for the lesson. Regards, Rich