Code:
SELECT direct_mngr_personnel_number, and_the_other_columns_you_need, totalcount.total_child FROM MyDataBase INNER JOIN (SELECT COUNT(*) AS total_child, direct_mngr_personnel_number FROM MyDataBase GROUP BY direct_mngr_personnel_number) totalcount ON MyDataBase.direct_mngr_personnel_number = totalcount.direct_mngr_personnel_number
Leave a comment: