Possible Duplicate:
Find duplicate records in MySQL
I have a table in MySQL like this:
ID name email
1 john [email protected]
2 johnny [email protected]
3 jim [email protected]
4 Michael [email protected]
How can I have the MySQL query that will list out the duplicate one like this?
Result of duplicate search:
ID name email Duplicate
1 john [email protected] 2
2 johnny [email protected] 2