Inner join and average in SQL
Ok. Here is the solution.
Select Country.Continent, floor(Avg(city.population))
From Country
Inner Join City
On Country.Code = City.CountryCode
Group By Country.Continent;
Here, We have to group by Continent so as to have a result set for continent being the key identifier and then applying AVG function to the population for the cities belonging to this continent.