赞
踩
有什么问题,欢迎评论或私聊。转载请私聊博主,谢谢。
原题链接:https://sqlzoo.net/wiki/SUM_and_COUNT
其他题解连接:https://blog.csdn.net/aiqiyizz/article/details/109057732
题解对应的是英文版题目。
SELECT SUM(population)
FROM world
SELECT DISTINCT continent
FROM world
SELECT SUM(gdp)
FROM world
WHERE continent = 'Africa'
SELECT COUNT(*)
FROM world
WHERE area >= 1000000
SELECT SUM(population)
FROM world
WHERE name IN ('Estonia','Latvia','Lithuania')
SELECT continent, COUNT(name)
FROM world
GROUP BY continent
SELECT continent, COUNT(name)
FROM world
WHERE population >= 10000000
GROUP BY continent
SELECT continent
FROM world
GROUP BY continent
HAVING SUM(population) >= 100000000
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。