codecorner.galanter.net
TSQL: Remove duplicate records. Clean and Simple
It’s a common scenario, your table has several records with identical values and you need to leave only one, deleting the rest. Here is a generic TSQL query (SQL Server 2005 and above) that d…