题解 | #考试分数(四)#

考试分数(四)

http://www.nowcoder.com/practice/502fb6e2b1ad4e56aa2e0dd90c6edf3c

select job ,start,end
from (select job,if(count()%2=0,round(count()/2),round((count()+1)/2)) start,
if(count(
)%2=0,round(count()/2+1),round((count()+1)/2)) end
from grade group by job order by score) t
order by job;

全部评论
select job, if(count(*)%2=0,round(count(*)/2),round((count(*)+1)/2)) start, if(count(*)%2=0,round(count(*)/2+1),round((count(*)+1)/2)) end from grade group by job order by job;
点赞 回复 分享
发布于 2021-04-13 13:14

相关推荐

点赞 评论 收藏
分享
05-29 09:02
门头沟学院 Java
点赞 评论 收藏
分享
今天 12:22
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务