#SQL notes
SELECT
withinSELECT
- select each country in Europe and show their population in percentage of population of Germany
SELECT name, CONCAT(ROUND(population/(SELECT population FROM world WHERE NAME = 'Germany')*100), '%') FROM world WHERE continent = 'Europe'
ALL
to run through a database list made withSELECT