T-SQL find duplicate records
Find duplicate records in a table
SELECT
MyColumn,
COUNT(MyColumn) AS Num
FROM MyTable
GROUP BY MyColumn
HAVING ( COUNT(MyColumn) > 1 )
Find duplicate records in a table
SELECT
MyColumn,
COUNT(MyColumn) AS Num
FROM MyTable
GROUP BY MyColumn
HAVING ( COUNT(MyColumn) > 1 )