Skip to content

Commit dbdcfb2

Browse files
committed
Time: 475 ms (82.16%), Space: 0B (100%) - LeetHub
1 parent fb02c44 commit dbdcfb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Write your MySQL query statement below
2+
SELECT teacher_id, COUNT(DISTINCT subject_id) AS cnt
3+
FROM Teacher
4+
GROUP BY teacher_id
5+
;

0 commit comments

Comments
 (0)