Re: Beginner needs help

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Beginner needs help
Дата
Msg-id 20030302002348.GA16937@wolff.to
обсуждение исходный текст
Ответ на Beginner needs help  (Aaron Chu <astrate@mac.com>)
Список 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 по дате отправления:

Предыдущее
От: "Chad Thompson"
Дата:
Сообщение: Re: Beginner needs help
Следующее
От: "Nicolas Fertig"
Дата:
Сообщение: OUTER JOIN with filter