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

From: Clark Evans <clark(dot)evans(at)manhattanproject(dot)com>
To: The Hermit Hacker <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Should the following work...?
Date: 1999-03-30 18:47:58
Message-ID: 37011C5E.459FC923@manhattanproject.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-03-30 19:08:33 Re: [HACKERS] Should the following work...?
Previous Message Clark Evans 1999-03-30 18:44:35 Re: [HACKERS] Should the following work...?