Average Population

Sort by

recency

|

724 Discussions

|

  • + 0 comments

    `

  • + 0 comments

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

  • + 0 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.

  • + 0 comments
    SELECT FLOOR(AVG(POPULATION))
    FROM CITY
    
  • + 0 comments

    SELECT FLOOR(AVG(POPULATION)) FROM CITY;