SQLZOO(SELECT within SELECT Tutorial)Writeup
来源:互联网 发布:工艺流程软件软件 编辑:程序博客网 时间:2024/04/28 05:21
转载自SQLZOO(SELECT within SELECT Tutorial)Writeup
1.
SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name='Russia')
2.
SELECT name FROM world WHERE continent = 'Europe' AND gdp/population > (SELECT gdp/population FROM world WHERE name = 'United Kingdom')
3.
select name,continent from world where (continent =(select continent from world where name='Argentina')) or (continent =(select continent from world where name='Australia'))order by name
4.
select name,population from world where population>(select population from world where name ='Canada') and population<(select population from world where name='Poland')
5.
select name,CONCAT(ROUND(100*population/(select population from world where name='Germany')),'%') from world where continent='Europe'
6.
select name from world where gdp > ALL(select gdp from world where gdp>0 and continent='Europe')
这里必须要gdp>0
7.
SELECT continent, name, area FROM world x WHERE x.area >= ALL (SELECT area FROM world y WHERE y.continent=x.continent AND y.area>0)
8.
select continent,name from world x where x.name=(select y.name from world y where y.continent=x.continent order by name limit 1)
9.
SELECT name, continent, population FROM world x WHERE 25000000>=ALL (SELECT population FROM world y WHERE x.continent=y.continent AND population>0)
10.
select name,continent from world x where x.population/3 >= all(select population from world y where x.continent=y.continent and x.name!=y.name and y.population>0)
0 0
- SQLZOO(SELECT within SELECT Tutorial)Writeup
- SQLZOO(SELECT from Nobel Tutorial)Writeup
- sqlzoo练习答案--SELECT within SELECT Tutorial
- sqlzoo练习答案--SELECT within SELECT Tutorial
- SQLZOO(SELECT from WORLD Tutorial)Writeup
- SQLZOO SELECT within SELECT
- SQLZOO(select basics)writeup
- sqlzoo-SELECT within SELECT参考答案
- SQL 练习疑问-SELECT within SELECT Tutorial
- sqlzoo练习答案--SELECT from Nobel Tutorial/zh
- sqlzoo练习答案--SELECT from Nobel Tutorial/zh
- SQLZOO SELECT FROM NOBEL
- SQLZOO(The JOIN operation)Writeup
- sqlzoo练习答案--SELECT basics/zh
- sqlzoo练习答案--SELECT names/zh
- SQLZOO 练习答案 SELECT FROM world
- sqlzoo练习答案--SELECT names/zh
- sqlzoo练习答案--SELECT basics/zh
- nagios插件,通过nrpe远程调用和本地执行结果不一致
- 上传文件到github
- MySQL快速学习入门
- ViewPager加fragment如何保存fragment里面的状态
- d3.js——update、enter、exit
- SQLZOO(SELECT within SELECT Tutorial)Writeup
- I00001 杨辉三角
- APP上架审核被拒(新增2016.04)
- 嵌套json解析
- 使用ABBYY FineReader 12的那些心得体会
- 【CodeForces 618B】Guess the Permutation(水题)
- SOLR安装简单配置
- 缺少动态链接库: libthrift-0.9.3.so: cannot open shared object file: No such file or directory
- 关于解耦 分布式部署 架构 设计模式的疑问