MySQL Wählen Sie die letzte Zeile für jede Gruppe aus
SELECT *
FROM CUSTOMERS
WHERE id IN (SELECT MAX(id) FROM CUSTOMERS GROUP BY PERSON_NAME);
Mysterious Macaque
SELECT *
FROM CUSTOMERS
WHERE id IN (SELECT MAX(id) FROM CUSTOMERS GROUP BY PERSON_NAME);