Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Active User Metrics | Sessionized Data Fundamentals
SQL for Product Analysts

bookChallenge: Active User Metrics

Aufgabe

Swipe to start coding

Write a SQL query to find all users who have been active in the last 3 days. For the purposes of this task, assume the last 3 days are 2024-06-01, 2024-06-02, and 2024-06-03 (inclusive).

  • Select the user_id and name from the users table;
  • Join the users table with the sessions table;
  • Filter sessions to only include those with session_start between 2024-06-01 (inclusive) and 2024-06-04 (exclusive);
  • Ensure each user appears only once in your result, even if they have multiple sessions in this period.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 6
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

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you provide an example to illustrate this?

close

bookChallenge: Active User Metrics

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Write a SQL query to find all users who have been active in the last 3 days. For the purposes of this task, assume the last 3 days are 2024-06-01, 2024-06-02, and 2024-06-03 (inclusive).

  • Select the user_id and name from the users table;
  • Join the users table with the sessions table;
  • Filter sessions to only include those with session_start between 2024-06-01 (inclusive) and 2024-06-04 (exclusive);
  • Ensure each user appears only once in your result, even if they have multiple sessions in this period.

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 1. Kapitel 6
single

single

some-alt