Average Population

Sort by

recency

|

677 Discussions

|

  • + 0 comments

    select cast(avg(population) as decimal(10,0)) from city

  • + 0 comments

    For MySQL

    SELECT ROUND(AVG(population)) FROM city;
    
  • + 1 comment

    SELECT FLOOR(AVG(POPULATION)) AS AVG_POPULATION FROM CITY;

  • + 0 comments

    mysql:

    select round(avg(population)) from city;
    
  • + 1 comment

    SELECT ROUND(AVG(POPULATION), 0) FROM CITY; OR SELECT FLOOR(AVG(POPULATION)) FROM CITY;

    both works fine