题解 | #实习广场投递简历分析(三)#

实习广场投递简历分析(三)

http://www.nowcoder.com/practice/83f84aa5c32b4cf5a75558d02dd7743c

SELECT t1.job, fym, first_year_cnt, sym, second_year_cnt
FROM 
(SELECT job, SUBSTR(date, 1, 7) AS fym, SUM(num) AS first_year_cnt
FROM resume_info
WHERE YEAR(date) = 2025
GROUP BY job, fym) t1
JOIN
(SELECT job, SUBSTR(date, 1, 7) AS sym, SUM(num) AS second_year_cnt
FROM resume_info
WHERE YEAR(date) = 2026
GROUP BY job, sym) t2
ON t1.job = t2.job
AND SUBSTR(t1.fym, 1, 4) = SUBSTR(t2.sym, 1, 4) - 1
AND SUBSTR(t1.fym, 6, 2) = SUBSTR(t2.sym, 6, 2)
ORDER BY fym DESC, job DESC
全部评论

相关推荐

已老实求offer😫:有点像徐坤(没有冒犯的意思哈)
点赞 评论 收藏
分享
11-09 17:30
门头沟学院 Java
TYUT太摆金星:我也是,好几个华为的社招找我了
点赞 评论 收藏
分享
11-30 11:07
河南大学 Java
宇宙厂 测开 n*15
丘丘给个offer:有后选后
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务