题解 | #今天的刷题量(一)#

今天的刷题量(一)

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

select subject.name, cnt from (
select subject_id, count(id) cnt from 
submission
where create_time=date_format((select now()),'%Y-%m-%d')
group by subject_id) c 
left join subject on c.subject_id=subject.id
order by cnt desc, subject_id asc

全部评论

相关推荐

点赞 评论 收藏
分享
03-04 19:02
云南大学 Java
Yki_:没挂,只是没人捞,该干啥干啥,等着就好了
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

更多
牛客网
牛客企业服务