SELECT
university,
AVG(question_cnt) AS avg_question_cnt
FROM
user_profile
GROUP BY
university
ORDER BY
avg_question_cnt
执行顺序
where 、group by 、count / avg、having、order by 、limit
SELECT
university,
AVG(question_cnt) AS avg_question_cnt
FROM
user_profile
GROUP BY
university
ORDER BY
avg_question_cnt
执行顺序
where 、group by 、count / avg、having、order by 、limit