select uid,b,c from (select u.uid,u.level,count(e.start_time) a,count(e.start_time)-count(e.submit_time) b, case when count(e.start_time)=0 then 0.000 else round((count(e.start_time)-count(e.submit_time))/count(e.start_time),3) end c from user_info u left join exam_record e on u.uid=...