题解 | #分组计算练习题#
分组计算练习题
https://www.nowcoder.com/practice/009d8067d2df47fea429afe2e7b9de45
select gender, university, count(gender) as user_num, avg(active_days_within_30) as active_days_within_30, avg(question_cnt) as question_cnt from user_profile group by university, gender
一定要心中有中间查询的表结果