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 1mQUJl-0004CM-30 for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 12:47:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQUJj-0005dR-HR for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 12:47:11 +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 1mQUJj-0005ct-8b for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 12:47:11 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mQUJf-00005r-2R for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 12:47:10 +0000 Received: by mail-pl1-x633.google.com with SMTP id bb10so1576469plb.2 for ; Wed, 15 Sep 2021 05:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:in-reply-to:references:mime-version:date :user-agent:content-transfer-encoding; bh=tbNkGRQaziyRZWtAX8OivMZ4jBA71fT0PFCnsqK88tQ=; b=P9g14XilkPvwCvBo+67mIZir5qzAyEo5DwjIEwVBzvbwEsW+7ypLY2CckC0uap99Rz t7VGhpFTF0b+JRL34XSAJNbf5WD+DRcBqH9QW5pbDC+dh15qN82WKVL4D8tjYiNl92EO CYUsMxHLFc+vfkylYqCjf1V4G13pOQbhG3556EmhXWm8nngspdW9uDo7DYS/P/xYzhJn YUAjKy7ia+sqkzOzh4wGdQHAu6d5H7O7+KcHxwjKWXiNkKqrhM+cDxiQMnXq3yIWjcFw Gpt9Okbg/KuEE0VkbRuzLL7VG91ttBi03DSzZfZow2aaTlQdSJt5MJRVxdky6peBhTtF /TQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:in-reply-to :references:mime-version:date:user-agent:content-transfer-encoding; bh=tbNkGRQaziyRZWtAX8OivMZ4jBA71fT0PFCnsqK88tQ=; b=48/45FNQW+g0UOn/bJZUGDwWqOicNt64iOmfwWmw8kaJshX1UBTwod1OiYuoI55xPo xEBYTja+1L46bOoW26Ql9KmcWxmengxe39WXqgWJkN5bsV7lVa65m798inhqnPGg1sn7 AEGjBPsUFHzzpKehZHFKcTEt/aRaz08HDeVy4MddgVlwJORFQxCAr4E53hpKCqybYupg z9egmjIWiZ7XGZz9ApS3EXBZAcMEiyj/3k6aZKtZ3GG4+DdBeYlgXvuhCctzl6rLTEoi vJLFoSrKbGLb/cgN6JVXUkcRcGGax1IDe1PjyVXuj5usIa/ZlBQMn4nsO6KViRWZNfVR t9ZQ== X-Gm-Message-State: AOAM5336x0sx78g7cM9B9IzXeZB58xQGvNRDKg4RDSTCJ3me7r1rGrCN kICiPbfhorEcorQTkldDzpEpUyEAyYM= X-Google-Smtp-Source: ABdhPJxb/qkwbao6OQM0DrNOKEXIgWLf7juOyA3zYPh+pf92ThnHWNs99KlGnMarjn8fEbbGgJrTeQ== X-Received: by 2002:a17:90a:ab86:: with SMTP id n6mr8257822pjq.159.1631710024953; Wed, 15 Sep 2021 05:47:04 -0700 (PDT) Received: from 192-168-1-127.tpgi.com.au ([124.170.26.69]) by smtp.gmail.com with ESMTPSA id h10sm4516700pjs.51.2021.09.15.05.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 05:47:04 -0700 (PDT) Message-ID: <183103615291173300fbfad8087a758067d81d7d.camel@gmail.com> Subject: Re: SQL queries as sets: was The tragedy of SQL From: rob stone To: Steve Litt , pgsql-general@lists.postgresql.org In-Reply-To: <20210915005449.150f2e45@mydesk.domain.cxm> References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> <20210915005449.150f2e45@mydesk.domain.cxm> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 15 Sep 2021 18:51:09 +1000 User-Agent: Evolution 3.38.3-1 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > 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. > When Codd & Date elaborated the relational model, it was based on set theory. You have sets of data. Is there a relationship between them? If so, how do you express it? SQL came to exist. My two cents. > SteveT > > Steve Litt > Spring 2021 featured book: Troubleshooting Techniques of the > Successful > Technologist http://www.troubleshooters.com/techniques > >