SQLZOO to exercises of SELECT Quiz: some questions about basic SQL statements
https://sqlzoo.net/
1, the selection generating the code table.
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
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
5, which is an open world first few rows of the table
to select the results you'll get from this code. SELECT name, area * 2 FROM world WHERE population = 64000
Answer: The third
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')