思路:时间条件 + 岗位 + 数量 + 降序

  1. 时间条件为: date < '2026-01-01'
  2. 岗位为:job
  3. 数量为:sum(num) 的值
  4. 降序为:desc

完整代码:

select job, sum(num) as cnt
from resume_info
where date < '2026-01-01'
group by job
order by cnt desc