SQL - 예제로 배우는 SQL 1

산하·2022년 4월 8일
0

SQL

목록 보기
2/9
post-thumbnail

문제 링크 바로가기 👀



👉🏻 SELECT basics


1. Introducing the world table of countries

Q. Modify it to show the population of Germany

A.

SELECT population FROM world 
WhERE name = 'Germany' ;

2.Scandinavia

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

A.

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

3.Just the right size

Q. 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 250000 ;
profile
반갑습니다 :) 백앤드 개발자 산하입니다!

0개의 댓글