Skip to content
Advertisement

Getting student name with highest total mark in SQL

I have table named ‘marks’ which stores marks of students.

I want to get the name of student who has highest total mark.

I tried query like this

But this is not working. Can anyone please help ?

Advertisement

Answer

get the max() total first then use a subquery

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement