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 1mQIqo-0001oU-Ed for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 00:32:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQIqn-0003Kv-FC for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 00:32:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQIqm-0003Kl-29 for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 00:32:33 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQIqj-0003IW-3I for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 00:32:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 89F795C014B; Tue, 14 Sep 2021 20:32:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 14 Sep 2021 20:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=G lJzFolLjsRpzaoaXUa7MmVvqNL6gnvDYO3Yq5uK6BE=; b=qx5Dpjne0kQ3ULnFw YMxsQj6x02bE8DDbkdrt7br5dNkAT70BWDe7wJVUeVHA4yUBQtgOsJ1GnDII1W2x 7NPqCYQuKKfmlv5RmisO1PDSgCXdr9v9gwyxTtyAIwHJmTNFpXXM7woDbCiRNIcA 8ir/PzGlWjtVVBmlbMNGR3YB8nuDmgupoXsGkd70ULoj4peyLIXnRxkt3s1CC/HV 8nytqKf8YD/fTN+Z0qcfyzHrmtSYLeX80oRS3Msgh98TAYWaj0+HcFU4fhk+hsIU B3ENwXI3d/nCqpVBex6ACpdT53N2dBsxOt8zUej+k5brsIwKcJR4oNsZHK66qNyz 9IudA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=GlJzFolLjsRpzaoaXUa7MmVvqNL6gnvDYO3Yq5uK6 BE=; b=AmqnXCb8xuLdBwXdDILSoNig0GV8OEY0HK1iJ8jQeTODGXceZA8M1jIye aE1Jo7KmgMEwNhaX+Mgflrh9votKk2My9LcrX1R1ocZqbXAPiJG9mkQwvGAO+2ss IR9c4gXTHNIBwz9GS4foP67w/EnWCNXTSFDaH5UfCdais7leQXCNoXcYwUDzuOnz CrVqz4PH6MJ2eHekaai3Hc7LFfEO6GMPxZlNDOpgRNn2eXMvjzYEo4zr6JQMhYo+ tLHKOrnSKZbFaR615EiTHFlaV/mfL0i9ZAfd3IhO9xoNvgXkWoNsrQaMy6HxueIc uVXsIYcta71TiavQew/hAqKznE5Lw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehtddgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhushhpvggtthffohhmrghinhculdegledmnecujfgurhepuffvfhfhkffffgggjggt gfesthekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrih grnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeff geejjeekteegffeileekjeehjedtudetvdeltdduvdetveegudeihfetiedtjeenucffoh hmrghinhepfihorhguphhrvghsshdrtghomhenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvg hrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Sep 2021 20:32:26 -0400 (EDT) Subject: Re: The tragedy of SQL To: Mladen Gogala , pgsql-general@lists.postgresql.org References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> <67f0b6d6-9e8d-a27e-ca7c-e91842338180@gmail.com> From: Adrian Klaver Message-ID: <4db1c577-665d-04f6-ba25-eb74a782a8f7@aklaver.com> Date: Tue, 14 Sep 2021 17:32:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <67f0b6d6-9e8d-a27e-ca7c-e91842338180@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/14/21 12:51 PM, Mladen Gogala wrote: > Replies in-line > > On 9/14/21 01:51, Guyren Howe wrote: >> They are making a decent decision. SQL is a *fucking terrible* >> language, which I don’t blame them for not wanting to learn. > > Based on what criteria? > > >> >> The whole industry, programming languages, infrastructure, everything >> would have developed differently if relations were a natural, >> pleasurable thing to use in any programming language. Like an Array, >> or a Hash. > > Thee is nothing natural about either relations or arrays and > hashes/dictionaries. Relations are pretty literal implementation of the > basic set theory. Having a decent understanding of the basic set theory > is a condition  for understanding SQL. Now, we can discuss whether a > language implementing a mathematical theory is "good" or "bad", whatever > the meaning of "good" or "bad" in the given context. Historically, SQL > is a good fit for the banking business and accounting and that is why it > is still around. > I can see what you are saying. Still as someone that comes from a biology background and a basic understanding of math I will say SQL has a broader appeal. All those years of memorizing organism classifications inadvertently led me to set theory; 'all dogs are animals, not all animals are dogs'. Also, time spent identifying plants/critters via dichotomous keys led me to boolean logic. The upshot is that once I got involved with SQL databases the basics made sense. The details I am still learning. > > -- > I'll speak the key, the whole key and nothing but the key, so help me Codd. > Mladen Gogala > Database Consultant > Tel: (347) 321-1217 > https://dbwhisperer.wordpress.com > -- Adrian Klaver adrian.klaver@aklaver.com