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

今天的刷题量(一)

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

思路:用now()求出现在时间,再用date_format转换时间
select name,cnt
from
(select subject_id,create_time,count(*) cnt
from submission
group by subject_id,create_time) s1
left join subject s2
on s1.subject_id=s2.id
where create_time=date_format(now(),'%Y-%m-%d')
order by cnt desc,subject_id



全部评论

相关推荐

26牛牛不会梦到感谢信:羡慕离职了还能吃吗现在就赶回去
点赞 评论 收藏
分享
Aki-Tomoya:窝趣,人家这是先富带动后富,共同富裕了属于是
投递英伟达等公司9个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务