Derived Table with Key Optimization
The idea
Example
SELECT *
FROM
Country,
(SELECT
SUM(City.Population) AS urban_population,
City.Country
FROM City
GROUP BY City.Country
HAVING
urban_population > 1*1000*1000
) AS cities_in_country
WHERE
Country.Code=cities_in_country.Country AND Country.Continent='Europe';Factsheet
See Also
Last updated
Was this helpful?

