Veterans Only

SQL practice problem 1 of 67 · Basics · Easy · 10 coins for your first accepted solve

The arena only lets seasoned fighters into the ranked lobby.

Return the name and level of every player with level 10 or higher.

Sort by level descending, then by name ascending.

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.

Next: Rookie Class of 2025 · All problems