Group function is not allowed here
在不允许使用聚合函数的上下文(如 WHERE 子句)中使用了聚合函数(SUM、COUNT、AVG、MAX、MIN)。
-- Review WHERE clause for aggregate functions and move them to HAVING
「语法」在课程 Day 1-10 中有 10 篇完整实战教程