pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Kirkbride <rob@rkcomputing.co.uk>
To: pgsql-sql@postgresql.org
Subject: 'select where' using multiple columns.
Date: Fri, 05 Aug 2005 10:46:45 +0100
Message-ID: <42F33585.1090706@rkcomputing.co.uk> (raw)

Hi,

I've googled around for this but can't see a decent way of doing this :

I've got a persons name which is being stored say in 3 columns :-  
Title, Forename_1, Forename_2, Surname. I want to allow a search say for 
'John Smith'. Problem is I can't just break it up into forename and 
surname because I won't also know.
Is there a way to do something like a
'select * where forename_1,forename_2,surname like '%String%'   ??

Thanks for any help. Apologies if its a FAQ.

Rob




view thread (5+ messages)  latest in thread

Message-ID: <42F33585.1090706@rkcomputing.co.uk>
Permalink:  ../42F33585.1090706@rkcomputing.co.uk/
Also on:    postgresql.org/message-id/42F33585.1090706@rkcomputing.co.uk

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rob@rkcomputing.co.uk
  Subject: Re: 'select where' using multiple columns.
  In-Reply-To: <42F33585.1090706@rkcomputing.co.uk>

* 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