Re: Selecting all variations of job title in a list - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Selecting all variations of job title in a list
Date
Msg-id 0b511e5a-aadb-4168-9ba4-0b4ae213f920@aklaver.com
Whole thread Raw
In response to Selecting all variations of job title in a list  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
On 11/25/25 08:33, Rich Shepard wrote:
> Companies can have slightly different titles for the same job; for example
> (using abbreviations). 'Asst Gen Mgr.', 'Env Mgr,', 'Gen Mgr,'. 'Mgr,',
> 'Plant Mgr.'
> 
> I want to select all people table rows that contain these varieties. I know
> the 'like' operator uses '%' as a wildcard, but is not accepted in an 'in'
> list.


Something like?:

select 'Env mgr.' ilike  ANY(ARRAY['Asst Gen Mgr.', 'Env Mgr.', 'Gen 
Mgr.', 'Mgr.','Plant Mgr.']);

t
> 
> Is there a way to use a multicharacter wildcard in an 'in' list?
> 
> TIA,
> 
> Rich
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Selecting all variations of job title in a list
Next
From: Bernice Southey
Date:
Subject: Indentation in a patch