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.
- Prepare
- SQL
- Aggregation
- Average Population
- Discussions
Average Population
Average Population
Sort by
recency
|
675 Discussions
|
Please Login in order to post a comment
SELECT FLOOR(AVG(POPULATION)) AS AVG_POPULATION FROM CITY;
mysql:
SELECT ROUND(AVG(POPULATION), 0) FROM CITY; OR SELECT FLOOR(AVG(POPULATION)) FROM CITY;
both works fine
for ms sql SELECT CEILING(AVG(POPULATION)) FROM CITY