일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- codeup
- GenerativeAI
- LeetCode
- Blazor
- 자연어처리
- SQL
- 투포인터
- Python3
- 머신러닝
- 생성형AI
- nlp
- stratascratch
- TwoPointer
- 파이썬
- Microsoft
- 알고리즘
- 파이썬알고리즘
- 릿코드
- 파이썬기초
- 데이터사이언스
- Python
- 파이썬기초100제
- 코드업
- 구글퀵랩
- sql코테
- GenAI
- medium
- two-pointer
- 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 |