题解 | #分组过滤练习题#
分组排序练习题
http://www.nowcoder.com/practice/e00bbac732cb4b6bbc62a52b930cb15e
SELECT university,
avg(question_cnt) AS avg_question_cnt,
avg(answer_cnt) AS avg_answer_cnt
FROM user_profile
GROUP BY university
HAVING avg_question_cnt<5 OR avg_answer_cnt<20