0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【SQL ZOO 解答集】(SELECT basics)

Last updated at Posted at 2019-08-30

##本投稿の目的

  • sql学習サイトsqlzooを用いたsqlの学習と理解
  • 学習のアウトプット
  • 学習メモとして、かつ公式の解答ページがなかったので作成した。

0 SELECT basics(このページ)
1 SELECT name
2 SELECT from World
3 SELECT from Nobel
4 SELECT within SELECT
5 SUM and COUNT
6 JOIN
7 More JOIN operations
8 Using Null
8+ Numeric Examples
9 Self join

####0 SELECT basics
####問題1
#####ドイツの人口を表示

SELECT population 
FROM world
WHERE name = 'Germany'

####問題2
#####「スウェーデン」、「ノルウェー」、「デンマーク」の名前と人口を表示

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

####問題3
#####面積が200,000〜250,000の国の場合は、国と面積を表示

SELECT name, area 
FROM world
WHERE area BETWEEN 200000 AND 250000

次回
1 SELECT name

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?