题解 | #今天的刷题量(一)#
今天的刷题量(一)
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