思路:时间条件 + 岗位 + 数量 + 降序
- 时间条件为: date < '2026-01-01'
- 岗位为:job
- 数量为:sum(num) 的值
- 降序为:desc
完整代码:
select job, sum(num) as cnt
from resume_info
where date < '2026-01-01'
group by job
order by cnt desc
思路:时间条件 + 岗位 + 数量 + 降序
- 时间条件为: date < '2026-01-01'
- 岗位为:job
- 数量为:sum(num) 的值
- 降序为:desc
完整代码:
select job, sum(num) as cnt
from resume_info
where date < '2026-01-01'
group by job
order by cnt desc