Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vO02I-005FK1-3C for pgsql-general@arkaria.postgresql.org; Tue, 25 Nov 2025 20:53:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vO02H-00BZSR-1v for pgsql-general@arkaria.postgresql.org; Tue, 25 Nov 2025 20:53:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vO02H-00BZSJ-0r for pgsql-general@lists.postgresql.org; Tue, 25 Nov 2025 20:53:17 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vO02F-001UHn-1i for pgsql-general@lists.postgresql.org; Tue, 25 Nov 2025 20:53:17 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 741A12A14D6 for ; Tue, 25 Nov 2025 12:53:12 -0800 (PST) Date: Tue, 25 Nov 2025 12:53:12 -0800 (PST) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Selecting all variations of job title in a list In-Reply-To: Message-ID: <1f9412d8-2e66-b037-127e-872464bd65cc@appl-ecosys.com> References: <9172514f-c267-6160-4b2a-7bd4eaf5be4@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 25 Nov 2025, Adrian Klaver wrote: > 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. Adrian, I thought my example was clear: there are modifiers to job titles such as 'Manager,' 'Vice President,' 'Engineer.' That's why I asked if the `like/ilike' modifier would work in a list passed to the `in' command. Rich