I have started to learn MySQL.
Here is the table world:
world
+-------------+-----------+---------+ | name | continent | area | +--
Try this
select distinct w.continent, (select w2.name from world w2 where w.continent = w2.continent order by name asc limit 1) name from world w order by w.continent