一、题目 二、代码 # Write your MySQL query statement below select teacher_id ,count(distinct subject_id ) as cnt from Teacher group by teacher_id 三、运行结果