Skip to content
Advertisement

I need one string with max value

I have such quire:

That is what i get from my quire, i need to take the row with the max count of excellent marks, if there is two or more such rows, i must to get it all I need to get one string with the name of specialty which has more excellent marks than others. But i cant understand how to do this. I tried to use "Limit", but if i have two or more specialties - it will be work incorrect. I couldnt use MAX with another aggregate functions, so i need an advice.

Advertisement

Answer

I think you want rank():

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