答案 0 :(得分:2)
应该是这样的:
select dept_name
, count(ID)
from instructor
group by dept_name
having count(ID) > 12
答案 1 :(得分:1)
使用group by
和having
子句过滤聚合函数。
select d.dept_name
from department d
inner join instructor i
on i.dept_name = d.dept_name
group by d.dept_name
having count(*) > 12