Here’s a quick way to find the duplicates in an MSSQL database:
SELECT item,
COUNT(item) AS numoccurrences
FROM sbDatabaseTable
GROUP BY item
HAVING(COUNT(item)>1)
Enjoy
Here’s a quick way to find the duplicates in an MSSQL database:
SELECT item,
COUNT(item) AS numoccurrences
FROM sbDatabaseTable
GROUP BY item
HAVING(COUNT(item)>1)
Enjoy