返回每季mysql前5名

时间:2019-02-26 03:14:24

标签: mysql mariadb

我现在拥有的是:

SELECT season, playerid,sum(yards) as total
from players_stats where statid = 10
GROUP by playerid
order by season, playerid,total desc

我想从2009-2018的每个赛季返回:球员编号,按降序排列前5码,每年限制为5。我不知道如何实现这一目标。

0 个答案:

没有答案