SQLZOO 01

SQLZOO 01

SELECT basics

  1. Show the population of Germany.
SELECT population FROM world
WHERE name = 'Germany'
  1. Show the name and the population for ‘Sweden’, ‘Norway’ and ‘Denmark’.
SELECT population FROM world
WHERE name = 'Germany'
  1. Show the country and the area for countries with an area between 200,000 and 250,000.
SELECT name, area FROM world
WHERE area BETWEEN 200000 AND 250000;

猜你喜欢

转载自blog.csdn.net/Nicole_678/article/details/114189846