Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Retention Cohorts | Retention and Churn Analysis
SQL for Product Analysts

bookChallenge: Retention Cohorts

Aufgabe

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 users and logins tables.
  • 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_id from the users table.
    • signup_date from the users table.
    • login_date from the logins table (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ösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Retention Cohorts

Swipe um das Menü anzuzeigen

Aufgabe

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 users and logins tables.
  • 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_id from the users table.
    • signup_date from the users table.
    • login_date from the logins table (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ösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

some-alt