Technical Article

Remove Duplicates from Table - No Cursors

This script deletes all duplicates from a table.  It keeps the first instance of the record, and discards all others.  If you want to keep the last instance of the record, use MAX instead of MIN.  The script can be modified very easily to include more/less fields for comparison.  I've successfully used this SP to […]

You rated this post out of 5. Change rating

2004-07-27 (first published: )

286 reads

Blogs

A New Word: the Wends

By

the wends– n. the frustration that you’re not enjoying an experience as much as...

7 Best Online Advanced SQL Training Courses to Learn in 2024 and Beyond

By

The world runs on data, and SQL is the key to unlocking its secrets....

Manually Updating Redgate Monitor/SQL Monitor Patch Info

By

This post looks at updating the patch information for SQL Monitor/Redgate Monitor without using...

Read the latest Blogs

Forums

Express In-Memory OLTP

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Express In-Memory OLTP

Disaster Recovery and High Availability Solutions in SQL Server

By Smit Dagli

Comments posted to this topic are about the item Disaster Recovery and High Availability...

Designing Persistence Storage for a new Project in Azure

By BOR15K

Can someone share from their experience on various design options pros / cons, please?...

Visit the forum

Question of the Day

Express In-Memory OLTP

Can I create In-Memory OLTP tables in SQL Server Express?

See possible answers