We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The answer accepted by test engine is: SELECT FLOOR(AVG(POPULATION))
FROM CITY. However, for this to be the answer the question shoud be "find the average population ACROSS all cities", NOT "FOR all cities". For implies at the city granularity, which would require a grouping at the city level.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Average Population
You are viewing a single comment's thread. Return to all comments →
The answer accepted by test engine is: SELECT FLOOR(AVG(POPULATION)) FROM CITY. However, for this to be the answer the question shoud be "find the average population ACROSS all cities", NOT "FOR all cities". For implies at the city granularity, which would require a grouping at the city level.