Delete repeated results from MySQL query

后端 未结 5 1839
故里飘歌
故里飘歌 2021-01-21 13:53

A MySQL query retrieves:

totalpoints --  name 
55 -- John Doe
55 -- John Doe
55 -- John Doe
55 -- John Doe
55 -- John Doe
21 -- Jean London
21 -- Jean London
13         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-21 14:18

    select name,totalpoints
    from table
    group by name
    order by totalpoints desc
    

提交回复
热议问题