DeDuping Tables with Duplicate Records

The script is in three parts:1. A select statement to determine the number of duplicate records contained within the table2. The deduping process builds a temporary table called #Duplicates and uses it to compare duplicates across both similar tables whilst deleting records with multiple counts3. Final test of deduping with no records indicating table is […]

5 (1)

2007-06-27

363 reads

Blogs

Renaming Files by Padding Numbers with PowerShell

By

Some time ago I had downloaded all the SQL Saturday XML files. I’ve been...

When do Statistics get updated?

By

Statistics objects are important for allowing the SQL Server Optimizer to make good estimates...

Power BI: Making Date & Time Keys

By

Saving the Day from Delay Part 2 Creating DateKey and TimeKey columns can be...

Read the latest Blogs

Forums

Date format - being overridden?

By NicHopper

Hi all, Got a strange one here that I hope someone can help with....

Best way to understand Querying much better

By pietlinden

What's the best way to get better at T-SQL Querying? Something like Read/do the...

Intermittent "nesting level exceeded" error

By julian.fletcher

We're having a very peculiar problem with the "Maximum stored procedure, function, trigger, or...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers