Re: Selecting all variations of job title in a list

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Selecting all variations of job title in a list
Date: 2025-11-25 20:46:37
Message-ID: ce79df34-8663-441d-b1c4-a1b2a78dc13b@aklaver.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/25/25 11:08, Rich Shepard wrote:
> On Tue, 25 Nov 2025, Adrian Klaver wrote:
>
>> Something like?:
>>
>> select 'Env mgr.' ilike  ANY(ARRAY['Asst Gen Mgr.', 'Env Mgr.', 'Gen
>> Mgr.', 'Mgr.','Plant Mgr.']);
>
> Adrian,
>
> Hadn't thought of this.
>
> Your, and Ron's, answers taught me that the answer to my question is 'no,
> there is no shortcut.' :-)

You will need to be clearer about what you want.

If it is to fetch titles with Mgr in the name then it would be simple:

select * from people_table where title ilike '%mgr%';

If it is something more selective you will need to provide a more
detailed example.

>
> Thanks,
>
> Rich
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2025-11-25 20:53:12 Re: Selecting all variations of job title in a list
Previous Message Rich Shepard 2025-11-25 19:38:17 Re: Selecting all variations of job title in a list