MySQL - SELECT the name that comes first alphabetically

This is a simple aggegation:

SELECT continent, MIN(name) AS name
FROM world 
GROUP BY continent
ORDER by continent

If it's an Exercise from SQLZoo, than IMO it should look something like this:

select continent, name from world x
where name = (select name 
                  from world y 
                  where  x.continent =  y.continent 
                  order by name asc 
                  limit 1)

P.S. I study SQL from there now and this post helped me. Thanks to @Parado!)

Update: I've found this site with answers. Useful if stack.

Tags:

Mysql

Sql