Sign-up Months
SQL practice problem 7 of 67 · Text & Dates · Easy · 10 coins for your first accepted solve
How many players joined in each month?
Return month as text in the form YYYY-MM (e.g. 2025-01) and the number of players as players. Sort by month.
Schema
CREATE TABLE players (
id INT PRIMARY KEY,
name TEXT NOT NULL,
country TEXT, -- NULL = unknown
level INT NOT NULL,
joined_on DATE NOT NULL,
mentor_id INT -- another player's id, or NULL
);
Write your query in the browser, run it on the sample data, then submit it against hidden test data.
Previous: Name Tags · Next: Account Age · All problems