#第一步:筛选条件(2025年),并转换日期格式
#第二步:窗口函数:统计以月份为单位的投简历数量
SELECT id, job, DATE_FORMAT(DATE,"%Y-%m") "mon", num FROM resume_info WHERE YEAR(DATE)= 2025
#第二步:窗口函数:统计以月份为单位的投简历数量
SELECT DISTINCT job, mon, SUM(num) over(PARTITION BY job, mon) "cnt" FROM (SELECT id, job, DATE_FORMAT(DATE,"%Y-%m") "mon", num FROM resume_info WHERE YEAR(DATE)= 2025) t ORDER BY mon DESC, cnt DESC