I have a table with rows like id, length, time and some of them are dublicates, where length and time is the same in some rows. I want to delete all copys of the first row submitted.
id | length | time
01 | 255232 | 1242
02 | 255232 | 1242 <- Delete that one
I have this to show all duplicates in table.
SELECT idgarmin_track, length , time
FROM `80dage_garmin_track`
WHERE length in
( SELECT length
FROM `80dage_garmin_track`
GROUP
BY length
HAVING count(*) > 1 )
ORDER BY idgarmin_track, length, time LIMIT 0,500