return max value for each group but when there is a tie, return one with lower id in MySQL

前端 未结 0 1308
日久生厌
日久生厌 2020-12-06 12:23

I am using MySQL 8.0

My table looks like this:

group   user_id    score
  A        1        33
  B        2        22
  A        3        22
  B                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题