I have the following data in a table :-
Student Subject Marks
Peter English 85
Peter Maths 79
Peter Science 80
Milind English 71
Milind Maths 95
Milind Science 89
I want to write a query which will give me for each student, the subject in which s/he scored max. In this case, it will be
Peter English
Milind Maths
Thanks in advance for the help. Milind.