[문제]
[MySQL]
SELECT teacher_id
, COUNT(DISTINCT subject_id) AS cnt
FROM Teacher
GROUP BY teacher_id
'SQL > LeetCode' 카테고리의 다른 글
| [LeetCode] 3220. Odd and Even Transactions (0) | 2025.02.22 |
|---|---|
| [LeetCode] 1978. Employees Whose Manager Left the Company (0) | 2025.02.21 |
| [LeetCode] 1965. Employees With Missing Information (0) | 2025.02.21 |
| [LeetCode] 1934. Confirmation Rate (0) | 2025.02.21 |
| [LeetCode] 1907. Count Salary Categories (0) | 2025.02.21 |
