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

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

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

知识点

  1. 首先把原表的日期转换一下,%Y年4位,%m月
date_format(date,format)
date参数是合法的日期。format规定日期/时间的输出格式
  1. 2025年也可以写成date like '2025%'
  2. 按照岗位和日期分组,最后求和

代码

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

相关推荐

点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
06-27 15:07
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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