Tags
- count
- N:1
- create
- outer join
- 큐
- migrations
- ORM
- distinct
- SQL
- 트리
- delete
- 그리디
- update
- M:N
- 백트래킹
- Article & User
- 뷰
- 스택
- stack
- Django
- Vue
- 완전검색
- regexp
- drf
- 통계학
- 이진트리
- DB
- 쟝고
- Queue
- Tree
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Notice
Recent Posts
Link
데이터 분석 기술 블로그
Number of Unique Subjects Taught by Each Teacher _ Easy. LeetCode 본문
SQL/문제풀이
Number of Unique Subjects Taught by Each Teacher _ Easy. LeetCode
데이터분석가 이채은 2024. 10. 14. 02:56
Solution
SELECT teacher_id,
COUNT(DISTINCT(subject_id)) AS cnt
FROM Teacher
GROUP BY teacher_id;
'SQL > 문제풀이' 카테고리의 다른 글
User Activity for the Past 30 Days I _ Easy. LeetCode * (0) | 2024.10.16 |
---|---|
Higher Than 75 Marks _ Easy. HackerRank * (0) | 2024.10.15 |
Weather Observation Station 12 _ Easy. HackerRank (0) | 2024.10.13 |
Queries Quality and Percentage _ Easy. LeetCode * (0) | 2024.10.12 |
Weather Observation Station 11 _ Easy. HackerRank (0) | 2024.10.11 |