题解 | 今天的刷题量(一)
今天的刷题量(一)
https://www.nowcoder.com/practice/e18f56796ae94c3d885e61c8d57a950e
select name, count(*) as cnt from submission as s1 join subject as s2 on s1.subject_id=s2.id where create_time=CURDATE() group by name, subject_id order by cnt desc, subject_id;