sqlzoo练习题
0 select basics
1.Modify it to show the population of Germany
select population from world where name = 'Germany'
2.Show the name and the population for ‘Sweden’, ‘Norway’ and ‘Denmark’.
in的使用
select name,population from world where name in ('Sweden','Norway','Denmark')
3.Which countries are not too small and not too big? BETWEEN allows range checking (range specified is inclusive of boundary values). The example below shows countries with an area of 250,000-300,000 sq. km. Modify it to show the country and the area for countries with an area between 200,000 and 250,000.
between and 的使用,限定某个值的使用范围
select name,area from world where area between 200000 and 250000