find duplicate with 2 column sql server code example
Example: sql query to find duplicates in column
SELECT name, COUNT(email)
FROM users
GROUP BY email
HAVING COUNT(email) > 1
SELECT name, COUNT(email)
FROM users
GROUP BY email
HAVING COUNT(email) > 1