I have a MySQL table called clients.
This table's columns are:
FirstName | LastName | address | etc......
What I would like to do is dispay all rows in the database which are DUPLICATE having the same FirstName and LastName
I have tried:
SELECT first_name, last_name, COUNT( first_name ) , COUNT( last_name )
FROM `clients`
GROUP BY first_name, last_name
HAVING count( first_name ) >1 AND count( last_name ) >1
ORDER BY last_name
But what I happening is that it will ONLY list one match per line.
What I need it to do is say if there are two "Betty Bishop" lines in the database, list both of them so I can integrate this into a form with checkboxes to remove one of them.
I want to display all because I would like to compare the two to see which one I would like to remove.
Thanks for your help!