Challenge: Retention Cohorts
Opgave
Swipe to start coding
Calculate day 30 retention by finding users who logged in exactly 30 days after their signup date.
- Write a SQL query that joins the
usersandloginstables. - For each user, check if there is a login on the date that is exactly 30 days after their signup date.
- Return the following columns:
user_idfrom theuserstable.signup_datefrom theuserstable.login_datefrom theloginstable (should be exactly 30 days after signup).
- Do not include users who did not log in exactly 30 days after signup.
- Do not use printing statements or comments in your query.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 4.17
Challenge: Retention Cohorts
Stryg for at vise menuen
Opgave
Swipe to start coding
Calculate day 30 retention by finding users who logged in exactly 30 days after their signup date.
- Write a SQL query that joins the
usersandloginstables. - For each user, check if there is a login on the date that is exactly 30 days after their signup date.
- Return the following columns:
user_idfrom theuserstable.signup_datefrom theuserstable.login_datefrom theloginstable (should be exactly 30 days after signup).
- Do not include users who did not log in exactly 30 days after signup.
- Do not use printing statements or comments in your query.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single