Re: Determine if range list contains specified integer

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Determine if range list contains specified integer
Date: 2022-05-27 16:40:58
Message-ID: 7dfc4fb0-2cd0-69ac-1c7e-976e9cb22da1@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2022-05-27 17:07:50 Re: Determine if range list contains specified integer
Previous Message Matthias Apitz 2022-05-27 16:36:36 Re: existing row not found by SELECT ... WHERE CTID = ?