select A.id, A.name, count(B.*) [count(son)]
from 表1 A left join 表2 B on A.name = B.father
group by A.id, A.name