题解 | #查找GPA最高值#

计算男生人数以及平均GPA

http://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01

主要就是用条件加函数,count() , round(),avg()函数后面不要有空格
select count(gender) as male_num ,round(avg(gpa),1)
from user_profile
where gender='male';

全部评论

相关推荐

评论
29
1
分享

创作者周榜

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