### attend_tb ### and what ### 每个科目最大同时在线人数,需要对时间进行排序,记录各个时间的状态时进入还是离开 # (SELECT a.course_id,course_name,in_datetime,1 AS count # FROM attend_tb a # LEFT JOIN course_id b # ON a.course_id = b.course_id) # UNION ALL # (SELECT a.course_id,course_name,out_datetime,-1 AS count # FROM attend_tb a # LEFT...