Challenge: Active User Metrics
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 6
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.17
Challenge: Active User Metrics
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 6
single