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

今天的刷题量(一)

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



全部评论

相关推荐

头发暂时没有的KFC总裁:找廉价劳动力罢了
点赞 评论 收藏
分享
只写bug的程序媛:人家说一本以上,不是及以上
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务