In my database I have profile ids with statuses which also have a timestamp. I want to have the latest status for each profile using a query. How can I do this the easiest way?
So f.e. for:
Id Profile Timestamp
-------------------------
1 1 1550588089
2 1 1550588099
3 3 1550588183
4 4 1550588333
5 4 1550588534
6 4 1550588377
I want to have
Id Timestamp
-------------------------
2 1550588099
3 1550588183
5 1550588534