已采纳回答 / SevenKey
SELECT `a表`.`name` AS 村社,COUNT(`a表`.id) AS 统计结果 FROM a表 LEFT JOIN `b表` ON `a表`.card=`b表`.card WHERE GROUP BY `a表`.`name`
2016-03-24