2021-11-28 SQL学习4

课程资料网盘链接:https://pan.baidu.com/s/1-jOwaXWArtv8h21B0-uWGg 提取码:wsra
SQL零基础入门笔记:https://www.mubucm.com/doc/4VC7JuHlj6H
云端数据库安装文档:https://share.mubu.com/doc/rBUGcUie8H
Python安装文档:https://www.mubucm.com/doc/4DJ8YNSNz4F

select continent from world group by continent having sum(population)>=100000000

image.png

select continent, avg(gdp) 平均gdp
from world
where (gdp>20000000000
and population > 60000000)
or (gdp < 8000000000
and capital like '%a%a%a%')
group by continent having sum(population)>=300000000
order by count(name) desc
limit 1


image.png

你可能感兴趣的:(2021-11-28 SQL学习4)