Tags
- regexp
- Vue
- Tree
- DB
- SQL
- 이진트리
- 스택
- migrations
- Queue
- 트리
- drf
- distinct
- update
- ORM
- Article & User
- M:N
- create
- 완전검색
- 통계학
- count
- 백트래킹
- 큐
- stack
- 그리디
- 쟝고
- Django
- outer join
- N:1
- delete
- 뷰
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
31 |
Notice
Recent Posts
Link
데이터 분석 기술 블로그
Last Person to Fit in the Bus _ Medium. LeetCode 본문
SELECT person_name
FROM Queue q1
JOIN (SELECT person_id,
SUM(weight) OVER (ORDER BY turn) AS Total_Weight
FROM Queue
) q2
ON q1.person_id = q2.person_id
WHERE q2.Total_Weight <= 1000
ORDER BY Total_Weight DESC
LIMIT 1;
'SQL > 문제풀이' 카테고리의 다른 글
Group Sold Products By The Date _ Medium. LeetCode (0) | 2025.01.10 |
---|---|
Find Users With Valid E-Mails _ Easy. LeetCode (0) | 2025.01.09 |
Confirmation Rate _ Medium. LeetCode (0) | 2025.01.07 |
Customers Who Bought All Products _ Medium.LeetCode * (0) | 2025.01.06 |
Consecutive Numbers _ Medium.LeetCode (0) | 2025.01.05 |