Remove Duplicates

Detecting and Deleting Duplicate Records in SQL Server 2005 and Above

Most of the time, we encounter duplicate records in our database. And it's not easy to delete it if you don't have enough knowledge about SQL Statement. This code will help you detect and delete duplicate records in SQL Server 2005 and above. (These commands only works on sql server 2005 or higher) Create table create table example(id int identity(1,1),name varchar(20),class varchar(20)); (Here