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

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

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

全部评论

相关推荐

10-07 23:57
已编辑
电子科技大学 Java
八街九陌:博士?客户端?开发?啊?
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务