I know you can select duplicate rows in MYSQL with the following query:
SELECT ID, bedrijfsnaam, plaats, COUNT( * )
FROM profiles
GROUP BY bedrijfsnaam, plaats
HAVING COUNT( * ) >1
I want to able to select the duplicates and rename them with PHP. Is that possible? If it finds three duplicates for one 'bedrijfsnaam-plaats'-combination, I want to add 'I', 'II', 'III' at the end of the 'bedrijfsnaam' value. Is that even possible? Is there some kind of loop I could run?
Thanks..