i have this table structure:
+----+-------+
| ID | phone |
+----+-------+
| 3 | 000 |
| 4 | 111 |
| 5 | 111 |
| 8 | 222 |
| 9 | 333 |
+----+-------+
i know, that i can show duplicate rows with this sql:
SELECT * FROM TablePhones GROUP BY phone having count(*) > 1
but i need a sql command which deletes all duplicates but keep that row, which has the highest ID.
can you help me please? :)