HAVING 子句可以让我们筛选分组后的各组数据。(使用having字句时一定要搭配group by字句)
-
例题:
- 题解:
select emp_no,count(1) as t
from salaries
group by emp_no
having t >15
HAVING 子句可以让我们筛选分组后的各组数据。(使用having字句时一定要搭配group by字句)
例题:
select emp_no,count(1) as t
from salaries
group by emp_no
having t >15