题解 | #计算男生人数以及平均GPA#
计算男生人数以及平均GPA
https://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select count(*),round(avg(gpa),1) from user_profile where gender='male';
1count(*)和count(列名)之间的区别
2对输出结果四舍五入借助roung(avg(列名),2)
计算男生人数以及平均GPA
https://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select count(*),round(avg(gpa),1) from user_profile where gender='male';
1count(*)和count(列名)之间的区别
2对输出结果四舍五入借助roung(avg(列名),2)
相关推荐