Re: selecting duplicate records

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org, naveen_shanbhag(at)hotmail(dot)com
Subject: Re: selecting duplicate records
Date: 2003-09-22 13:25:14
Message-ID: 3F6EF83A.129807D6@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 1. How to select duplicate records only from a single table using a
select
> query.
>
e.g.
select sid,count(sid) from location group by sid having count(sid)>1;

Do you get the idea?
Your request is pretty unspecific, so if this is not what you're asking
for,
try again.

Regards, Christoph

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2003-09-22 14:22:43 Re: auto_increment
Previous Message Richard Huxton 2003-09-22 12:51:59 Re: Fw: Backup error - Pls help