select sum(总数),sum(被处分的人),sum(未被处分的人)
from table 
group by 职务