Is it a slow query? Can it be improved?
问题 I was going through SQLZOO "SELECT within SELECT tutorial" and here's one of the queries that did the job (task 7 ) world(name, continent, area, population, gdp) SELECT w1.name, w1.continent, w1.population FROM world w1 WHERE 25000000 >= ALL(SELECT w2.population FROM world w2 WHERE w2.continent=w1.continent) My questions are about effectiveness of such query. The sub-query will run for each row (country) of the main query and thus repeatedly re-populating the ALL list for a given continent.