2356-number-of-unique-subjects-taught-by-each-teacher

DevGod
Vtuber
# Write your MySQL query statement belowSELECT teacher_id, COUNT(DISTINCT subject_id) AS cntFROM TeacherGROUP BY teacher_id
# Write your MySQL query statement belowSELECT teacher_id, COUNT(DISTINCT subject_id) AS cntFROM TeacherGROUP BY teacher_id