From cef9581ce76e4337540dc3e758e8fd0e83fbf99d Mon Sep 17 00:00:00 2001 From: Rahil Balar Date: Sun, 17 Oct 2021 14:36:37 -0700 Subject: [PATCH] Update select-in-select.sql --- select-in-select.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select-in-select.sql b/select-in-select.sql index 1d06af6..cd11989 100644 --- a/select-in-select.sql +++ b/select-in-select.sql @@ -48,7 +48,7 @@ Germany (population 80 million) has the largest population of the countries in E Show the name and the population of each country in Europe. Show the population as a percentage of the population of Germany. */ -SELECT name, CONCAT(ROUND(population/(SELECT population FROM world WHERE name = 'Germany'), 0), %) +SELECT name, CONCAT(ROUND(population*100/(SELECT population FROM world WHERE name = 'Germany'), 0), '%') AS percentage FROM world WHERE continent = 'Europe'