Here I assume application_no is unique, table name is "test_result"
select * from
(select qualification, application, max(obtainedmarks) obtainedmarks
from test_result group by qualification, application) summary
inner join test_result details
on summary.qualification = details.qualification and summary.obtainedmarks = details.obtainedmarks and summary.application= details.application
This will give you the idea how to create the query, first understand how the result will be formed and do it in the same way given
|