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 […]

2004-07-27 (first published: )

278 reads

Blogs

Clustering SAP #ASCS and #ERS on #AWS using Windows Server Failover Clustering

By

When ensuring high availability for SAP ASCS and ERS running on WIndows Server, the...

Ethics in Modern Data at the Baton Rouge Analytics and Intelligence Network (BRAIN)

By

On July 27, Christine and I will present our joint presentation on Ethics in...

Heading Font Weights and List View Toggles Arrive in Block Editor and WordPress 5.8

By

With the WordPress 5.8 release, we're starting to introduce features that overall improve your...

Read the latest Blogs

Forums

SSIS Custom transform component connectin manager

By Donpi

Hi, I'am currently working on a custom SSIS transform component. I allways create an...

The ways of Alerting when comparing two tables columns and find differences..

By asita

Hello Good Morning Guru's Can you please help me to give some ideas or...

the reads of SQL profiler is the number of SQL Server logical read?

By 892717952

I used SQL Profiler to trace SQL scripts and got one sql statement with...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers