题解 | #计算男生人数以及平均GPA#
计算男生人数以及平均GPA
https://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select round(count(gender),1) as male_num , round(avg(gpa),1) as avg_gpa # 注意题目要求保留一位小数 from user_profile where gender = 'male';
计算男生人数以及平均GPA
https://www.nowcoder.com/practice/7d9a7b2d6b4241dbb5e5066d7549ca01
select round(count(gender),1) as male_num , round(avg(gpa),1) as avg_gpa # 注意题目要求保留一位小数 from user_profile where gender = 'male';
相关推荐