Find duplicate concat values
问题 I'm trying to find each row with duplicates in a MySQL database. 1 alex smith 2 bob smith 3 alex smith I want to return: 1 alex smith 3 alex smith This code will find duplicates, but it doesn't list each row that is a duplicate. SELECT *, CONCAT(`firstName`, ' ', `lastName`) as full_name, COUNT(*) d FROM users GROUP BY full_name HAVING d > 1; The code below is what I'm trying to get each row that is a dupliate, but I get the error "#1054 - Unknown column 'full_name' in 'IN/ALL/ANY subquery'"