C/C++教程

SQLZOO练习-Part1: SELECT basics

本文主要是介绍SQLZOO练习-Part1: SELECT basics,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Part1: SELECT basics 

1.  Show the population of Germany.

SELECT population 
FROM world 
WHERE name = 'Germany'

2.Show the name and the population for 'Sweden', 'Norway' and 'Denmark'. 

SELECT name, population 
FROM world 
WHERE name IN ('Sweden', 'Norway' , 'Denmark')

3.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

这篇关于SQLZOO练习-Part1: SELECT basics的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!