Let's say I have the following table in MySQL.
I have the following query: SELECT * FROM my_table GROUP BY names
.
This will make a list where every name will only appear once but it doesn't take care of the year. I need to SELECT always the latest entry. Means e.g. Peter | 2016
for Peter
.
How can I do this?