题解 | #计算男生人数以及平均GPA#
计算男生人数以及平均GPA
http://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
count(gender) as male_num,
avg(gpa) as avg_gpa //select多个函数的条件用逗号隔开
from
user_profile
where
gender = 'male'
// where 一定要在 from 之后的!!!!!
计算男生人数以及平均GPA
http://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
count(gender) as male_num,
avg(gpa) as avg_gpa //select多个函数的条件用逗号隔开
from
user_profile
where
gender = 'male'
// where 一定要在 from 之后的!!!!!
相关推荐