select sum(1) as male_num ,avg(gpa) avg_gpa from user_profile where gender='male'; #解题思路:使用1进行统计,如果使用数字类型的使用了sum,那么就会导致会将这些数字加起来。