[문제]
[MySQL]
WITH student_cnt AS (
SELECT class
, COUNT(DISTINCT student) AS cnt
FROM Courses
GROUP BY class
)
SELECT class
FROM student_cnt
WHERE cnt >= 5
'SQL > LeetCode' 카테고리의 다른 글
| [LeetCode] 602. Friend Requests II: Who Has the Most Friends (0) | 2025.02.18 |
|---|---|
| [LeetCode] 601. Human Traffic of Stadium (0) | 2025.02.18 |
| [LeetCode] 595. Big Countries (0) | 2025.02.18 |
| [LeetCode] 586. Customer Placing the Largest Number of Orders (0) | 2025.02.18 |
| [LeetCode] 585. Investments in 2016 (0) | 2025.02.18 |
