-
[SQLZOO] SELECT basics 답MySQL 2022. 4. 19. 11:42728x90
Q: Modify it to show the population of Germany
A: SELECT population FROM world
WHERE name = 'Germany'Q: Show the name and the population for 'Sweden', 'Norway' and 'Denmark'.
A: SELECT name, population FROM world
WHERE name IN ('Sweden', 'Norway', 'Denmark');Q: 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.
A: SELECT name, area FROM world
WHERE area BETWEEN 200000 AND 250000728x90'MySQL' 카테고리의 다른 글
2 SELECT from WORLD Tutorial 답안 (0) 2022.05.08