解题思路
1.求职方向为算法工程师,且注册当天就完成了算法类试卷的人
2.计算所有考试最高得分和排名
3.按参加过的所有考试最高得分排名
4.取出第3页(页码从1开始)的人的信息 limit 6,3
select
a.uid,
level,
register_time,
max(score)max_score
from exam_record a
join examination_info b
on a.exam_id=b.exam_id
join user_info c
on c.uid=a.uid
where job='算法'
and tag = '算法'
and date(register_time)=date(start_time)=date(submit_time)
and score is not null
group by
a.uid
order by max_score desc
limit 6,3

京公网安备 11010502036488号