# 修改了一下大神的代码 SELECT job, floor((count(*)+1)/2) start , ceiling((count(*)+1)/2) end from grade group by job order by job; #使用窗口函数 SELECT g.job, if(mod(count(rak),2)=0,round(count(rak)/2),round(count(rak)/2)) start , if(mod(count(rak),2)=0,round(count(rak)/2)+1,round(...