2356. Number of Unique Subjects Taught by Each Teacher : leetcode

오유찬·2025년 12월 27일

SQL

목록 보기
30/71
SELECT  teacher_id, COUNT(DISTINCT subject_id) as cnt
FROM    Teacher
GROUP BY
        teacher_id
profile
열심히 하면 재밌다

0개의 댓글