Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Active User Metrics | Sessionized Data Fundamentals
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Product Analysts
close
SectionΒ 1. ChapterΒ 6
single

single

bookChallenge: Active User Metrics

Swipe to show menu

Task

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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt