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.
Looks like you are using MS SQL Server.
You can achieve the same as CAST(round(avg(City.Population)-0.5,0) as int)
since MS SQL expects us to specify the precision after/before decimal points.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Average Population of Each Continent
You are viewing a single comment's thread. Return to all comments →
Looks like you are using MS SQL Server. You can achieve the same as
CAST(round(avg(City.Population)-0.5,0) as int)
since MS SQL expects us to specify the precision after/before decimal points.