Challenge: Retention Matrix
Swipe to start coding
You are analyzing user retention by signup cohorts. Your goal is to summarize how many users from each signup cohort return in each subsequent week after their signup date.
Write a SQL query that:
- For each user cohort, defined by
users.signup_date, calculates the number of distinct users who logged in during each week after their signup date. - Outputs the following columns:
cohort_start: thesignup_dateof the cohort;week_number: the number of weeks after signup (0 for the signup week);retained_users: the count of distinct users active in that week.
- Uses only the provided
usersandloginstables. - Orders results by
cohort_startandweek_number.
This matrix will help you visualize retention trends by cohort and week. Do not use the exact code from the examples above, but apply the same concepts to solve the task.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.17
Challenge: Retention Matrix
Свайпніть щоб показати меню
Swipe to start coding
You are analyzing user retention by signup cohorts. Your goal is to summarize how many users from each signup cohort return in each subsequent week after their signup date.
Write a SQL query that:
- For each user cohort, defined by
users.signup_date, calculates the number of distinct users who logged in during each week after their signup date. - Outputs the following columns:
cohort_start: thesignup_dateof the cohort;week_number: the number of weeks after signup (0 for the signup week);retained_users: the count of distinct users active in that week.
- Uses only the provided
usersandloginstables. - Orders results by
cohort_startandweek_number.
This matrix will help you visualize retention trends by cohort and week. Do not use the exact code from the examples above, but apply the same concepts to solve the task.
Рішення
Дякуємо за ваш відгук!
single