Practice · Sports · Easy

Egypt’s league title-holders

From football_titles, return each club and its league_titles, most titles first.

Runs in your browser. No signup needed.

What you are given

football_titles(club, league_titles). Simple ORDER BY descending.

Starting point

SELECT club, league_titles
FROM football_titles
ORDER BY ...;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.

Did you know

Al Ahly has won ~68% of all Egyptian Premier League titles ever contested — only seven clubs have ever won it at all. (Wikipedia, Egyptian Premier League)

More Sports challenges

Open it in the playground →