Monthly Signup Counts
signups records when each user created an account (signed_up_at is an ISO datetime string).
Count signups per calendar month. Format the month as YYYY-MM. Months with no signups do not need to appear.
Return columns month, signups. Order by month ascending.
Schema
CREATE TABLE signups ( user_id INTEGER PRIMARY KEY, signed_up_at TEXT NOT NULL, channel TEXT );
Sample data
signups
| user_id | signed_up_at | channel |
|---|---|---|
| 1 | 2026-01-04 10:22:00 | ads |
| 2 | 2026-01-19 18:05:00 | organic |
| 3 | 2026-02-01 00:00:00 | ads |
| 4 | 2026-02-14 12:40:00 | referral |
| 5 | 2026-02-28 23:59:59 | organic |
| 6 | 2026-04-02 08:15:00 | ads |
Hint 1
strftime('%Y-%m', ts) turns a timestamp into its year-month.
Hint 2
July 2024 and July 2025 are different months, so keep the year in the key.
Good practice for: Data Analyst, Product Manager, Business Analyst, Digital Marketing Specialist
SQL (SQLite)
Run checks your query on the sample data (Ctrl + '). Submit also checks hidden databases.