I am trying to get top 5 score from student table. table looks like that.
table: student
id name score
1 a 100
2 b 100
3 c 90
4 d 87
5 e 85
6 f 88
7 g 83
9 h 92
if i do
select name,score from student order by score desc limit 5
a 100
b 100
h 92
c 90
f 88
however, I want to see this result
a 100
b 100
h 92
c 90
f 88
d 87
I am trying to figure out duplicated score as count one Any solution? Thanks in advance.