Find the number of professors with a Ph.D. degree in each department.
SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code
number of professors with a Ph.D. degree refers to COUNT(*) WHERE prof_high_degree = 'Ph.D.'; in each department refers to GROUP BY dept_code;