SQL GROUP BY and SUM

前端 未结 2 1318
离开以前
离开以前 2020-12-21 03:32

List the continents with total populations of at least 100 million.

World Table

name         continent  area    population  gdp
Afghanistan  Asia       6522         


        
2条回答
  •  清歌不尽
    2020-12-21 04:23

    SELECT   continent, SUM(population)
    FROM     world
    GROUP BY continent
    HAVING   SUM(population) >= 100000000
    

提交回复
热议问题