I have the following table:
Class, Name, Score
1, Anna, 34
1, Andy, 80
2, Brooke, 90
2, Brad, 70
3, Charles, 67
3, Christina, 66
How to I find the 'Name' with maximum 'Score' in each 'Class' ?
Required Output:
Class, Name, Score
1, Andy, 80
2, Brooke, 90
3, Charles, 67
This is for MySQL.