you're reading...
SQL Server, T-SQL

T-SQL: Find Duplicates Without Using JOIN

Here is a simple and handy piece of code to find duplicate records.

select field from table GROUP BY field HAVING COUNT(field) > 0



About ldgaller

Accomplished Data Warehouse Architect, DBA and Software Architect with over 15 years of professional experience and demonstrated success designing and implementing solutions that improve business functionality and productivity. Highly diverse technical background with proven ability to design, develop and implement technology on an enterprise level. I approach all projects with passion, diligence, integrity, and exceptional aptitude.


Comments are closed.

%d bloggers like this: