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

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

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

with tab as
(select job,substring_index(date,'-',2) as date,sum(num) as num
from resume_info
where date like '2025%'
group by substring_index(date,'-',2),job
order by date desc,job desc
),tab2 as
(
    select job,substring_index(date,'-',2) as date,sum(num) as num
from resume_info
where date like '2026%'
group by substring_index(date,'-',2),job
order by date desc,job desc
)
select tab.job,tab.date as first_year_mon	,tab.num as first_year_cnt	, tab2.date as second_year_mon
,tab2.num as second_year_cnt
from tab inner join tab2 on tab.job = tab2.job and left(tab.date,4) = left(tab2.date,4)-1 and right(tab.date,2) = right(tab2.date,2)

全部评论

相关推荐

北枳的南橘:建议大家务必去和他沟通一下,像极了小学生对你侃侃而谈国际局势😂
找AI工作可以去哪些公司...
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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