From: | Viktor Bojović <viktor(dot)bojovic(at)gmail(dot)com> |
---|---|
To: | Khangelani Gama <Khangelani(dot)Gama(at)ucs-software(dot)co(dot)za> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: PostgreSQL Select command that will list only duplicate rows |
Date: | 2010-11-10 08:56:56 |
Message-ID: | AANLkTikXtwQiOO+m43xaKWmUirkz5iQPtzp4fHpHvyd+@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
select rowName,count(1)
from table
group by rowName
having count(1)>1
On Wed, Nov 10, 2010 at 9:06 AM, Khangelani Gama <
Khangelani(dot)Gama(at)ucs-software(dot)co(dot)za> wrote:
> Hi all
>
>
>
> I am looking for a PostgreSQL Select command that will list me only
> duplicate rows.
>
>
>
> I am using psql 8.4.4.10
>
>
>
>
>
> Thanks in advance
>
>
>
>
>
>
>
> **
>
>
>
>
>
> Confidentiality Notice:http://ucs.co.za/conf.html
>
>
>
>
>
> ------------------------------
> The contents of and attachments to this e-mail are intended for the
> addressee only, and may contain the confidential information of UCS Group
> and/or its subsidiaries. Any review, use or dissemination thereof by anyone
> other than the intended addressee is prohibited. If you are not the intended
> addressee please notify the writer immediately and destroy the e-mail. UCS
> Group Limited and its subsidiaries distance themselves from and accept no
> liability for unauthorised use of their e-mail facilities or e-mails sent
> other than strictly for business purposes.
>
--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me
From | Date | Subject | |
---|---|---|---|
Next Message | Silvio Brandani | 2010-11-10 10:33:03 | reindex script |
Previous Message | Khangelani Gama | 2010-11-10 08:06:30 | PostgreSQL Select command that will list only duplicate rows |