Can I do this in one SQL statement? If so, please tell me how. I
have wasted a ton of time on this but there has to be an easy way to
do it. I should have done it with more than one statement and been
done with it but I can't stop thinkin about it.
Table:
Grades
Columns:
StudentID
GradeDate
Grade
I want to get the last grade for each student. However, the maximum
date for each student is different. I tried
SELECT max(GradeDate), StudentID, Grade
FROM Grades;
Didn't give me what I wanted.
Please tell me how to get the newest grade for each student.
Bill