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

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

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

select
    t1.job,
    t1.first_year_mon,
    t1.first_year_cnt,
    t2.second_year_mon,
    t2.second_year_cnt
from (
    -- 2025年每月总数
    select
        job,
        substr(date,1,7) first_year_mon,
        sum(num) first_year_cnt
    from resume_info
    where substr(date,1,4) = '2025'
    group by job,first_year_mon
) t1
inner join (
    -- 2026年每月总数
    select
        job,
        substr(date,1,7) second_year_mon,
        sum(num) second_year_cnt
    from resume_info
    where substr(date,1,4) = '2026'
    group by job,second_year_mon
) t2
on t1.job = t2.job and regexp_replace(t1.first_year_mon,'2025','2026') = t2.second_year_mon 
order by first_year_mon desc,job desc ;

全部评论

相关推荐

刘湘_passion:太强了牛肉哥有被激励到
点赞 评论 收藏
分享
05-29 20:34
门头沟学院 C++
KarlAllen_直通春招版:得做好直接春招的准备。学历差的话,一是面试要求会比学历好的严格不少,二是就算面试通过了也会被排序。总之暑期和秋招对于学历差的就是及其不友好
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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