LeetCode-SQL-574. 当选者
程序员文章站
2022-06-11 14:29:10
...
select Name
from (
select CandidateId as id
from Vote
group by CandidateId
order by count(id) desc
limit 1
) as Winner join Candidate
on Winner.id = Candidate.id