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

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

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

select a.job,
a.date as first_yera_mon,
a.cnt as first_year_cnt,
b.date as second_year_mon,
b.cnt as second_year_cnt
from 
(select distinct job, date_format(date,'%Y-%m') as date, month(date)as mon, sum(num)over(partition by date_format(date,'%Y-%m'),job) as cnt
from resume_info 
where year(date)='2025') a
left join 
(select distinct job, date_format(date,'%Y-%m') as date, month(date)as mon, sum(num)over(partition by date_format(date,'%Y-%m'),job) as cnt
from resume_info 
where year(date)='2026') b
on a.job=b.job and a.mon=b.mon
order by 2 desc, 1 desc

全部评论

相关推荐

瑞雪兆丰年_:可以贴个超级大的校徽,以防HR眼拙
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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