SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Month-over-Month Retained Users

Unsolved

Meta tracks retained users: people active in a month who were also active in the previous calendar month. Only the actions 'login', 'like' and 'comment' make a user active; 'page_view' does not. Several actions in the same month still count as one active user. Write an SQL query that returns active_month (formatted as 'YYYY-MM') and retained_users for June, July and August 2025. Order the results by active_month ascending.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Meta

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM user_actions
Full source dataset
20 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine