Challenge: Advanced Window Analytics
Завдання
Swipe to start coding
Analyze user engagement by ranking users within each A/B group according to their activity level. Use window functions to achieve this advanced metric.
- Write a SQL query that ranks users within each
ab_groupbased on the total number of events they performed (highest number of events gets rank 1 in their group). - Output the following columns:
ab_group,user_id,event_count, anduser_rank(the rank of the user within their group). - Use a window function to calculate the rank (
user_rank) for each user within theirab_group. - Order the results by
ab_groupanduser_rank.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.17
Challenge: Advanced Window Analytics
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Analyze user engagement by ranking users within each A/B group according to their activity level. Use window functions to achieve this advanced metric.
- Write a SQL query that ranks users within each
ab_groupbased on the total number of events they performed (highest number of events gets rank 1 in their group). - Output the following columns:
ab_group,user_id,event_count, anduser_rank(the rank of the user within their group). - Use a window function to calculate the rank (
user_rank) for each user within theirab_group. - Order the results by
ab_groupanduser_rank.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 6
single