I'm trying to show the duplicate codes in a mysql query.
I'm doing it with this code:
SELECT 'id', 'idarticulo', 'talla', 'color', count(*) FROM 'CodigosEan' GROUP BY 'idarticulo', 'talla', 'color' HAVING count(*) > 1
The problem is that if there are duplicates, it groups them together and I do not see what they are. I would need to know the ID of all affected (or grouped) Is there any way to know?