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

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

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

select
b.job
,b.fm
,b.fs
,c.sm
,c.ss
from(
select
a.job
,a.mon fm
,sum(a.num) fs
from (
select
id
,job
,substring(date,1,7) mon
,num
from resume_info
where date >= '2025-01-01'
and date <= '2025-12-31'
) a
group by 1,2
order by a.mon desc,fm desc
) b
join(
select
a.job
,a.mon sm
,sum(a.num) ss
from (
select
id
,job
,substring(date,1,7) mon
,num
from resume_info
where date >= '2026-01-01'
and date <= '2026-12-31'
) a
group by 1,2
order by a.mon desc,sm desc
) c
on b.job = c.job
and substring(b.fm,6,2) = substring(c.sm,6,2)
order by b.fm desc,b.job desc

全部评论

相关推荐

11-18 15:57
门头沟学院 Java
最终归宿是测开:这个重邮的大佬在重邮很有名的,他就喜欢打92的脸,越有人质疑他,他越觉得爽😂
点赞 评论 收藏
分享
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务