From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Determine if range list contains specified integer
Date: Fri, 27 May 2022 09:40:58 -0700
Message-ID: <7dfc4fb0-2cd0-69ac-1c7e-976e9cb22da1@aklaver.com> (raw)
In-Reply-To: <7a070729-d6c1-2db9-e70d-8a637aa9724a@hot.ee>
References: <7a070729-d6c1-2db9-e70d-8a637aa9724a@hot.ee>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, kobruleht2@hot.ee
Subject: Re: Determine if range list contains specified integer
In-Reply-To: <7dfc4fb0-2cd0-69ac-1c7e-976e9cb22da1@aklaver.com>
References: <7a070729-d6c1-2db9-e70d-8a637aa9724a@hot.ee> <7dfc4fb0-2cd0-69ac-1c7e-976e9cb22da1@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox