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

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

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

with t as (
    select job, date_format(date, '%Y-%m') as month, sum(num) as cnt
    from resume_info
    where year(date) in (2025, 2026)
    group by job, date_format(date, '%Y-%m')
), t_2025 as (
    select *
    from t
    where left(month, 4)=2025
), t_2026 as (
    select *
    from t
    where left(month, 4)=2026
)
select t1.job, t1.month as first_year_mon, t1.cnt as first_year_cnt,
t2.month as second_year_mon, t2.cnt as second_year_cnt
from t_2025 t1 join t_2026 t2 on t1.job=t2.job and right(t1.month, 2)=right(t2.month, 2)
order by first_year_mon desc, t1.job desc

全部评论

相关推荐

等闲_:小红书基本不区分日常和暑期,你是应届实习时间够了就有转正机会,只要部门有hc
点赞 评论 收藏
分享
用微笑面对困难:你一定很懂劳务法 是不是因为这个hr不敢要
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务