LeetCode刷题实战574:当选者
程序IT圈
共 805字,需浏览 2分钟
·
2022-04-11 11:54
示例
解题
# Write your MySQL query statement below
select Name
from Candidate c left join
(
select CandidateId, count(*) num
from Vote
group by CandidateId
) v
on c.id = v.CandidateId
order by v.num desc
limit 1
评论