我在 oracle SQL 查询中有以下代码。此代码查找成员的用户名以及他们每年投票的次数。我该如何修改它以使其仅显示投票次数最多的用户?
SELECT username, count(username), extract(year from voteDate) as vote_year,
max(count(*)) over (partition by extract(year from voteDate)) as Max_votes
FROM rankingInfo NATURAL JOIN memberinfo
GROUP BY username, extract(year from voteDate);