From: | denis(at)coralindia(dot)com |
---|---|
To: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Duplicates Question |
Date: | 2002-03-04 08:46:42 |
Message-ID: | 019d01c1c359$1d029a20$0232a8c0@coralindia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
select field1, count(1) from your_table group by field1 having count(1) > 1
If you want to compare more than one fields, just include those fields in SELECT and GROUP BY clause...
Hope this helps.
Denis
----- Original Message -----
From: ebp
To: pgsql-novice(at)postgresql(dot)org
Sent: Sunday, March 03, 2002 8:55 AM
Subject: [NOVICE] Duplicates Question
Recently we imported a ton of webforms into our table and sadly brought in a ton duplicates(probably people trying to enter more than one submission, to have a greater chance of winning a prize.). Is there any easy duplicates removal method?. Also some of the subscribers may have the same first/last name so we cant usually delete a range of their names. Any suggestions?
-Anthony
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2002-03-04 09:20:02 | Re: timestamp value |
Previous Message | denis | 2002-03-04 08:43:02 | Re: Select statement question |