Practice · Sports · Easy

Egypt’s squash roster

Return the name and achievement of every athlete whose sport is Squash, oldest athlete first (by birth_year).

Runs in your browser. No signup needed.

What you are given

athletes(name, sport, birth_year, achievement).

Starting point

SELECT name, achievement
FROM athletes
WHERE sport = 'Squash'
ORDER BY birth_year;

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

Since 2003 an Egyptian has won the men’s squash World Championship ~14 times. The country holds multiple top-10 men and women simultaneously. (PSA / olympics.com)

More Sports challenges

Open it in the playground →