📅  最后修改于: 2022-03-11 14:48:14.484000             🧑  作者: Mango
select concat(first_name," ",last_name) as "top_3_leaders"
from Students
inner join
(select student_id, sum(grades) as total from grades
group by student_id
order by sum(grades) desc
limit 3
) as t1
where students.student_id = t1.student_id