SQL20 分组排序练习题

原题链接

在这里插入图片描述


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

猜你喜欢

转载自blog.csdn.net/QinLaoDeMaChu/article/details/127430728