可以在分组前过滤数据3、分组后过滤&xff08;having&xff09;作用&xff1a;用于分组后的数据过滤&xff0c;可以使用组函数。语法&xff1a;select. from. where. group by. having. order by. 例&xff1a;查询部门平均工资高于6000...
另外针对where和having的分组前后过滤&xff0c;这里提供自己试验的简单例子介绍&xff1a;数据库使用的是Mysql5.7以上的版本。SELECT parent_category_id FROM help_category GROUP BY parent_category_id HAVING count(*...