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 1mQUXV-0004lT-Qm for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 13:01: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 1mQUXU-0002Z7-Nd for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 13:01: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 1mQUXU-0002Yz-Ek for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 13:01: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 1mQUXS-0000Dv-8t for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 13:01:24 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id F28502A0108 for ; Wed, 15 Sep 2021 06:01:19 -0700 (PDT) Date: Wed, 15 Sep 2021 06:01:19 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: SQL queries as sets: was The tragedy of SQL In-Reply-To: <20210915005449.150f2e45@mydesk.domain.cxm> Message-ID: References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> <20210915005449.150f2e45@mydesk.domain.cxm> 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 Wed, 15 Sep 2021, Steve Litt wrote: > Rich, could you please elaborate on SQL queries being based on sets? I > never thought of it that way, and would like to hear your related > thoughts. SteveT, In the 1980s, when there were computer magazines such as Byte and Database Administrator (among many others), Joe Celko wrote a monthly database column in one (or more, I forget these details). This lead me to buy and read his books, including 'SQL for Smarties' and its many editions, 'SQL Programming', and 'Thinking in Sets: Auxilliary, Temporal, and Virtual Tables in SQL'. I reccomend his books to answer your questions and give you a sound foundation. Regards, Rich