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

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [HACKERS] Should the following work...?
Дата
Msg-id Pine.BSF.4.05.9903301508120.55565-100000@thelab.hub.org
обсуждение исходный текст
Ответ на Re: [HACKERS] Should the following work...?  (Clark Evans <clark.evans@manhattanproject.com>)
Список pgsql-hackers
Ya, that's what I forgot too :(  Its not something I use everyday, so
never think about it :)


On Tue, 30 Mar 1999, Clark Evans wrote:

> 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
> 

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



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

Предыдущее
От: Clark Evans
Дата:
Сообщение: Re: [HACKERS] Should the following work...?
Следующее
От: Michael Davis
Дата:
Сообщение: Interesting failure when selecting aggregates