Podium
SQL practice problem 4 of 67 · Basics · Easy · 10 coins for your first accepted solve
Return the name and level of the three highest-level players (fewer if there are fewer players).
Break ties by name ascending, and return them in podium order.
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: Unknown Origins · Next: Price Tags · All problems