题解 | #今天的刷题量(一)#
今天的刷题量(一)
https://www.nowcoder.com/practice/e18f56796ae94c3d885e61c8d57a950e
## 直接用current_date()代替create_time即可解决,heihei select a.name ,a.cnt from( select b.name ,b.id ,count(*) as cnt from submission a join subject b on a.subject_id=b.id where a.create_time=current_date() group by b.id,b.name ) a order by a.cnt desc,a.id ;