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 1nud1R-000740-Qg for pgsql-general@arkaria.postgresql.org; Fri, 27 May 2022 16:41:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nud1Q-0001Jo-M6 for pgsql-general@arkaria.postgresql.org; Fri, 27 May 2022 16:41:08 +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 1nud1P-0001Jf-1X for pgsql-general@lists.postgresql.org; Fri, 27 May 2022 16:41:08 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nud1L-00076e-GL for pgsql-general@postgresql.org; Fri, 27 May 2022 16:41:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C9E0E320098F; Fri, 27 May 2022 12:41:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 27 May 2022 12:41:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1653669660; x= 1653756060; bh=Od8OxAxxys6nXvDvlSQZQHOuu4msnr0SbiEkZ31vo+I=; b=d RLGAI5Zhc0DFBsuVE8tkLJtWCwISgdrMK4t+6e5dcWN9NFep68p28mWwx2B/L8CJ +jfI9QSlabobbUNL9r3bcXOxGWi32YsoelM5x09O5zk4dkLgsNq6HLyLd64wXKua tEcqua0Rw32tyYf40Hi3pukVqEuR9UkT5vG4ZzM6sq8RpUu4LDwxmuK6VmiYUFMn izvDXXo+6S3cxcdjl50z6gxs8ndCJiMX+4fkooJUVDfuvTM+Z0eJ+HhK5gQNB2OC PfEMOnuA1ZKwDcqREOBHNhcQlPjy1iMpns5xieOHoh/iGgO/AHMD9d//834XrYxB Xvu4cQhyeMuJJ2EOGvwqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1653669660; x=1653756060; bh=O d8OxAxxys6nXvDvlSQZQHOuu4msnr0SbiEkZ31vo+I=; b=Dp6d/pBR+vXCyXtYD yAT7ow8mvo3sFGcGYk47AvtK1NvDwqcjw7kokatWx0PucXXcE/P1s2hMKyK1fTQI B0/+8w3/lUQL07QBe+hyCF749daYuhfwYjcWhMYtW+QlQj3hLnwxFxLQdNYC1U9A UJ3OAg5kkYLYR/p8IIgPvZIM3Nk59GSYtyYtoMboYLxwaPpunt2bjC/nqKQz+n+R jsHesqHBFOYgxcV0C6hOguta2JEZ/rUAuI1r4oG37UgbGv/EBrhRBvvz8k/RHkxF cnDXi04Bbs0K3N+AOtTywwqwnnjzakkcuzMRW08EXyHTcL7WV1Kz+ITIHOy3+sor 4iSrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeelgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepudfgueelge evfffhgeeljeehhfettdegieelgefgheefffefveegjedtueetffdtnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 May 2022 12:40:59 -0400 (EDT) Message-ID: <7dfc4fb0-2cd0-69ac-1c7e-976e9cb22da1@aklaver.com> Date: Fri, 27 May 2022 09:40:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Determine if range list contains specified integer Content-Language: en-US To: Andrus , pgsql-general References: <7a070729-d6c1-2db9-e70d-8a637aa9724a@hot.ee> From: Adrian Klaver In-Reply-To: <7a070729-d6c1-2db9-e70d-8a637aa9724a@hot.ee> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/27/22 03:51, Andrus wrote: > Hi! > How to all properties for given type. > Query > >     select id >     from artliik >     join strings on ','||trim(strings.kirjeldLku)||',' like > '%,'||trim(artliik.liiginrlki)||',%' > > returns date for single integer list only. > How to change join so that type ranges in list like 6-9 are also returned? > Eq. f list contains 6-9, Type 6,7,8 and 9 shoud included in report. Start over with a more rational data model. > Andrus. > -- Adrian Klaver adrian.klaver@aklaver.com