这样应该就可以了
select a.id,a.subject,a.dept,b.sendDate,b.IsSend, max(c.contentType) as contentType
from a left join b on a.id = b.parentid 
left join c on a.id = c.parentid 
where a.dept = 5
group by a.id,a.subject,a.dept,b.sendDate,b.IsSend