MAU Percentage Change Month-over-Month
Problem
**[Classic — product analytics]**
MAU = distinct users active each month. Calculate MAU and MoM % change (rounded to 2 dp;
NULL for month 1). Order by month.
Tables
Example rows — the live problem includes the full dataset.
user_activity
| activity_id | user_id | activity_date |
|---|
Expected output
Your answer should return 3 rows with the columns month, mau, mom_pct_change.
Starter code (SQL)
SELECT *
FROM user_activity;Solve this SQL question free
Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.
Solution & explanation
Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.
Sign up free to unlock