I have a table which I want to get the latest entry for each group. Here\'s the table:
DocumentStatusLogs
Table
|ID| DocumentID | Status
It is checked in SQLite that you can use the following simple query with GROUP BY
SELECT MAX(DateCreated), *
FROM DocumentStatusLogs
GROUP BY DocumentID
Here MAX help to get the maximum DateCreated FROM each group.
But it seems that MYSQL doesn't associate *-columns with the value of max DateCreated :(