Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Delete duplicate data from table

Author  Topic 

Adianjali
Starting Member

7 Posts

Posted - 2011-01-12 : 01:56:32
Suppose there is 5 duplicate record in database for particular table
and i want to delete duplicate records
eg if there are 5 records for the same then to delete 4 records and leaving 1 behind.
Please help me for the same.
Thanks
Tc god bless u

arjun.s

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-12 : 02:01:32
Search for Delete duplicate records. You will find lot of related links

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-01-12 : 08:23:06
do you have a unique valued column in your table? are you using sql 2005 or more?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -