此题涉及日期处理,使用date_format转换日期格式,
%Y为四位数年份,%y为两位数年份,%m为1-12月,%M为月份英文名称
查询2025年的数据,使用like '2025%'即可
分组需要对job,mon关联分组,即不同组合为一组
通过月份,cnt排序,月份优先
select job,date_format(date,'%Y-%m') as mon,sum(num) as cnt
from resume_info
where date like '2025%'
group by job,mon
order by mon desc,cnt desc