select max(c) from (select count(t_employee.department_id) as c from t_employee group by t_employee.department_id) as count group by c
为什么这里max了count的统计后的结果与count的结果一样?

为什么这里max了count的统计后的结果与count的结果一样?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- CSDN专家-赖老师(软件之家) 2021-11-06 10:58关注
你这个返回的就是count最大的值。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用