Re: counting groups

From: Holger Klawitter <holger(at)klawitter(dot)de>
To: "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: counting groups
Date: 2000-10-24 11:27:12
Message-ID: 39F57210.A62A7D6E@klawitter.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi I found the solution myself,

but perhaps someone is interested as well.

SELECT count(*)
FROM table
WHERE attr IN (
SELECT attr
FROM table
WHERE condition
GROUP BY attr
HAVING count(*)>1
);

--
Regards,
Mit freundlichem Gruß,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
holger(at)klawitter(dot)de http://www.klawitter.de/

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-10-24 12:39:44 Re: PL/Perl compilation error
Previous Message Holger Klawitter 2000-10-24 11:11:14 counting groups