先通过时间限制可以写出:
select * from resume_info where date >'2025-01-01' and date <'2025-12-31'然后需要通过获取投递简历的岗位和数量,那么就按岗位job分组,然后使用聚合sum函数求出某个岗位的投递简历的数量,如下:
select job,sum(num) as cnt from resume_info where date >'2025-01-01' and date <'2025-12-31' group by job order by cnt desc;