I have table that has students classes and grades. They are allowed to fail a test twice but if they fail twice they have to retake the couse in which they have two more tries.
I would like to show only the most recent grade. Here is the table structure
Sequence | Student_ID | Class | Grade |
1 1 Math F
2 1 Math F
3 1 Math P
4 2 Math P
5 3 Eng F
6 1 Eng P
I would like the results to just show
Sequence | Student_ID | Class | Grade |
1 1 Math P
4 2 Math P
5 3 Eng F
6 1 Eng P
So I want to look for duplicates across Student ID and Class and then print out only the most recent (Sequence descending).
I am at a loss. Any ideas?