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

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

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

with t as(

SELECT distinct job

    ,date_format(date,"%Y-%m") as date

    ,date_format(date,"%m") as m

    ,date_format(date,"%Y") as y

    ,sum(num)over(partition by job,date_format(date,"%Y-%m")) cnt

FROM resume_info    

where year(date) in (2025,2026)

)

select t1.job,t1.date,t1.cnt,t2.date,t2.cnt

from t t1

join t t2

on t1.job =t2.job

and t1.m=t2.m

and t1.y<t2.y

order by t1.date desc,t1.job desc

全部评论

相关推荐

点赞 评论 收藏
分享
陆续:不可思议 竟然没那就话 那就我来吧 :你是我在牛客见到的最美的女孩
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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