题解 | #计算男生人数以及平均GPA#
计算男生人数以及平均GPA
http://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select count(gender) as male_num, sum(gpa) / count(gpa) as avg_gpa from user_profile
where gender = "male"
计算男生人数以及平均GPA
http://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select count(gender) as male_num, sum(gpa) / count(gpa) as avg_gpa from user_profile
where gender = "male"
相关推荐