32, SQLZOO practice of SELECT Quiz answers

SQLZOO to exercises of SELECT Quiz: some questions about basic SQL statements
https://sqlzoo.net/

Here Insert Picture Description

1, the selection generating the code table.
Here Insert Picture Description
Answer: The third
SELECT name, population FROM world WHERE population BETWEEN 1000000 AND 1250000

2. Select the results you'll get from this code. SELECT name, population FROM world WHERE name LIKE "Al%"

Answer: The fifth E TABLE
Here Insert Picture Description
3, select Code to display the country to "A" or "L" ending.

答案:第五个
SELECT name FROM world WHERE name LIKE ‘%a’ OR name LIKE ‘%l’

4. Select the results of the query.
Name the SELECT, length (name)
the FROM World
the WHERE length (name) =. 5 and Region = 'Europe'

Answer: The third
Here Insert Picture Description

5, which is an open world first few rows of the table
Here Insert Picture Description
to select the results you'll get from this code. SELECT name, area * 2 FROM world WHERE population = 64000

Answer: The third
Here Insert Picture Description
6, select Code to display area of more than 50,000, 10 million (10 million) had a small population of the country.

Answer: The third
SELECT name, area, population FROM world WHERE area> 50000 AND population <10000000

7, select Code to display population density China, Australia, Nigeria, and France. ,

Answer: The third
SELECT name, population / area FROM world WHERE name IN ( 'China', 'Nigeria', 'France', 'Australia')

Published 38 original articles · won praise 5 · Views 6017

Guess you like

Origin blog.csdn.net/luluisntlulu/article/details/100569368
Recommended