Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions select-in-select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ SELECT name, CONCAT(ROUND(population/(SELECT population FROM world WHERE name =
FROM world
WHERE continent = 'Europe'

/* above solution is incorrect i believe. The correct answer is */
SELECT name, CONCAT(ROUND((population/(SELECT population FROM world WHERE name = 'Germany')) * 100,0), '%')
AS 'percent of germany' FROM world
WHERE continent = 'Europe'

--#6
/*
Which countries have a GDP greater than every country in Europe? [Give the name only.] (Some countries may have NULL gdp values)
Expand Down