Re: [HACKERS] Should the following work...?

Поиск
Список
Период
Сортировка
От Clark Evans
Тема Re: [HACKERS] Should the following work...?
Дата
Msg-id 37011C5E.459FC923@manhattanproject.com
обсуждение исходный текст
Ответ на RE: [HACKERS] Should the following work...?  (The Hermit Hacker <scrappy@hub.org>)
Ответы Re: [HACKERS] Should the following work...?  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
The Hermit Hacker wrote:
> To find duplicate records, or, at least,
> data in a particular field, he suggests 
> just doing:
> 
>    SELECT id,count(1)
>      FROM clients
>  GROUP BY id
>    HAVING count(1) > 1;
> 
> A nice, clean, simple solution :)

Ya.  That's pretty.  For some
reason I always forget using the
'HAVING' clause, and end up using
a double where clause.  

:) Clark


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Clark Evans
Дата:
Сообщение: Re: [HACKERS] Should the following work...?
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Should the following work...?