分组之后计数,计数之后去重计数操作
select t.title, count(distinct t.emp_no) t
from titles t
group by title
having count(distinct t.emp_no) >= 2
分组之后计数,计数之后去重计数操作
select t.title, count(distinct t.emp_no) t
from titles t
group by title
having count(distinct t.emp_no) >= 2