how to check for duplicates in multiple columns in sql 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