Groups | Blog | Home
all groups > sql server mseq > august 2003 >

sql server mseq : Need help finding duplicate records and deleting them from sql 2000


roland strroebel
8/21/2003 5:55:32 AM
have duplicate records in application using sql as db. No
ability in application to remove duplicate data.

Need a query to find all duplicate records, or records
created within a date\time range will do as well,
then how to delete\remove them from sql.

Vishal Parkar
8/21/2003 9:46:15 AM
Deleting duplicate rows from the table.

http://support.microsoft.com/default.aspx?scid=KB;en-us;q139444

--
-Vishal
[quoted text, click to view]

Mohanjit
8/21/2003 12:52:41 PM
you can use following query as guidelines to find duplicate records

SELECT columnname, count(*)
FROM dbo.tablename
GROUP BY columnname
HAVING count(*) > 1

There are some articles in following site for finding and removing
duplicates
in database
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q139444
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q70956
This article by Neil Boyle at swynk.com
This article at 15seconds.com

All the best

-Mohanjit

[quoted text, click to view]

AddThis Social Bookmark Button