I have a table like this:
entry_time student class grade
------------------------------
1433793600 Dave 1 A
1433793600 Sue 1 B
1434994097 Dave 1 C
1434994097 Sue 1 B
I'm using this command:
SELECT *, MAX(entry_time) from records GROUP BY student
I'm getting the first records for each student instead of the last. I've tried using MIN (entry_time) and get the same thing.