how to get distinct rows with max value

前端 未结 4 1726
萌比男神i
萌比男神i 2020-12-17 04:47

my apologies for asking what must be very simple to solve, but I just can\'t seem to wrap my mind around this.. I couldn\'t even come up with a really fitting title for my q

4条回答
  •  情深已故
    2020-12-17 05:29

    select * from (select * from answers order by votes desc) as temp group by authorId
    

提交回复
热议问题