本文主要是介绍4 SELECT within SELECT Tutorial-SQLZoo,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. List each country name where the population is larger than that of 'Russia’
SELECT name FROM worldWHERE population >(SELECT population FROM worldWHERE name='Russia');
2. Show the countries in Europe with a per capita GDP greater than 'United Kingdom’
select name from world
where continent = 'Europe'
and gdp/population >
(select gdp/population from world
where name = 'United Kingdom');
3. List the name and continent of countries in the continents containing either Argentina or Australia. Order by name of the country
select<
这篇关于4 SELECT within SELECT Tutorial-SQLZoo的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!