Skip to content
Advertisement

select the data of all the students scoring highest marks in each subject group by city

I am using mysql version 8.0.23

the given table is:-

and I want to get the complete data of the students having highest marks in each subject from each city

I had used this but still I am not able to see name and id of that student

Advertisement

Answer

here is one way using window functions:

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