finding firstname + lastname groups

From: "blackwater dev" <blackwaterdev(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: finding firstname + lastname groups
Date: 2008-06-19 19:38:28
Message-ID: 34a9824e0806191238s632927fcwcd31d9be9ab49445@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have to find the same firstname+ lastname combo in my db and see which
name appears the most so I basically need to do the following:

select name, count(name) from people group by name having count(name)>1

The problem is name is not one column but made up of firstname,
lastname...how do I do this?

Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Philippe Grégoire 2008-06-19 19:49:01 Re: A plpgsql unidentifiable problem.
Previous Message Garry Saddington 2008-06-19 19:29:57 Re: Losing data