일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 파이썬기초100제
- two-pointer
- codeup
- 알고리즘
- slidingwindow
- 릿코드
- stratascratch
- 파이썬
- 구글퀵랩
- 자연어처리
- LeetCode
- sql코테
- heap
- GenAI
- medium
- 파이썬알고리즘
- 리트코드
- 투포인터
- GenerativeAI
- 생성형AI
- Microsoft
- 슬라이딩윈도우
- Python
- SQL
- Python3
- 니트코드
- dfs
- nlp
- 코드업
- gcp
Archives
- Today
- Total
Tech for good
[Stratascratch/SQL] User Feature Completion 본문


with cte as (
select feature_id, user_id, max(step_reached) as max_step
from facebook_product_features_realizations
group by feature_id, user_id)
select f.feature_id, ifnull(avg(cte.max_step/f.n_steps)*100, 0) avg_percentage
from facebook_product_features f
left join cte on f.feature_id = cte.feature_id
group by f.feature_id;
'IT > Data Science' 카테고리의 다른 글
[Stratascratch/SQL] Top 10 Salaries (0) | 2025.02.27 |
---|---|
[Stratascratch/SQL] Find the country that has the most companies listed on Forbes (0) | 2025.02.27 |
[Stratascratch/SQL] Find the total number of approved friendship requests in January and February (0) | 2025.02.26 |
[Stratascratch/SQL] Daily Interactions By Users Count (0) | 2025.02.26 |
[Stratascratch/SQL] Successfully Sent Messages (0) | 2025.02.26 |