1、题目描述 来源:力扣(LeetCode) 2、解题思路 1# 其实就是统计得票数,Vote,按CandidateId分组,计算数量,倒序,取第一个 2# 2表联查 3、提交记录 select Name from( select count(id) as cou,CandidateId from Vote group by CandidateId order by cou desc limit 1) V,Candidate where CandidateId=id 583ms