Re: finding firstname + lastname groups - Mailing list pgsql-general

From Sam Mason
Subject Re: finding firstname + lastname groups
Date
Msg-id 20080619211445.GP2572@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to finding firstname + lastname groups  ("blackwater dev" <blackwaterdev@gmail.com>)
Responses Re: finding firstname + lastname groups
List pgsql-general
On Thu, Jun 19, 2008 at 03:38:28PM -0400, blackwater dev wrote:
> The problem is name is not one column but made up of firstname,
> lastname...how do I do this?

I'd probably do something like:

  SELECT firstname, lastname, COUNT(*)
  FROM people
  GROUP BY firstname, lastname
  HAVING COUNT(*) > 1;


  Sam

pgsql-general by date:

Previous
From: Charles Simard
Date:
Subject: FW: finding firstname + lastname groups
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Losing data