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

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

http://www.nowcoder.com/practice/d323a4c97d1945e0aabe94e4d0bbb25d

用date_format将date的格式变成"%Y-%m"并设置昵称mon,根据job,mon分组汇总并用sum计算每组num总和。然后根据mon和cnt降序排序。

select job, date_format(date, "%Y-%m") as mon, sum(num) as cnt
from resume_info
where year(date) = "2025"
group by job, mon
order by mon desc, cnt desc
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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