0
find duplicates in a table using SQL
What would be a simple way to find duplicates in a table using SQL Select statement?
3 Answers
+ 2
To find duplicate records
SELECT username, email, COUNT(*)
FROM users
GROUP BY username, email
HAVING COUNT(*) > 1
To delete the duplicate records in a table use the following link
https://www.sololearn.com/Discuss/274045/how-to-delete-duplicate-records-in-sql
0
thanks! i still dont understand the sql which delete the dup. Do you mind explain it further, please?
0
i understand now
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
3 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes
For Moderators
1 Votes