Re: Beginner needs help - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: Beginner needs help
Date
Msg-id 20030302002348.GA16937@wolff.to
Whole thread Raw
In response to Beginner needs help  (Aaron Chu <astrate@mac.com>)
List pgsql-sql
On Thu, Feb 27, 2003 at 23:17:06 +0000, Aaron Chu <astrate@mac.com> wrote:
> Hi,
> 
> I have a table which has a column of surnames (string) and I would like 
> to know how can I retrieve (SELECT) all the repeated surnames, i.e. 
> more than one person who has the same surname.

select surname from whatevertable group by surname having count(*) > 1 order by surname;


pgsql-sql by date:

Previous
From: "Chad Thompson"
Date:
Subject: Re: Beginner needs help
Next
From: "Nicolas Fertig"
Date:
Subject: OUTER JOIN with filter