Skip to content

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

DevGod
DevGod
Vtuber
# Write your MySQL query statement below
SELECT teacher_id, COUNT(DISTINCT subject_id) AS cnt
FROM Teacher
GROUP BY teacher_id