Basic Flashcards

1
Q

[…] , …

from ;

A

select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

[…] , …

from ;

A

select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SELECT shoin_id […] id,
shoin_mei […] namae,
FROM Shoin;

A

as

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SELECT […] shohin_bunrui
FROM Shohin;
* 結果から重複行を除く場合

A

DISTINCT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SELECT , …
FROM
[…]

A

WHERE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

比較演算子

と等しい

A

=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

比較演算子

と等しくない

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

比較演算子

〜以上

A

> =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

比較演算子

〜以下

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

全行を数える
SELECT […]
FROM Shohin;

A

COUNT(*)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SELECT shoin_id […] id,
shoin_mei […] namae,
FROM Shoin;

A

as

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SELECT […] shohin_bunrui
FROM Shohin;
* 結果から重複行を除く場合

A

DISTINCT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

SELECT , …
FROM
[…]

A

WHERE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

比較演算子

と等しい

A

=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

比較演算子

と等しくない

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

比較演算子

〜以上

A

> =

17
Q

比較演算子

〜以下

A
18
Q

全行を数える
SELECT […]
FROM Shohin;

A

COUNT(*)

19
Q

NULLを除外して数える
SELECT COUNT([…])
FROM Shohin;

A

列名

20
Q

平均値を求める
SELECT
FROM Shohin;

A

AVG

21
Q

最大値を求める
SELECT
FROM Shohin;

A

MAX

22
Q

値の種類を数えたいとき
SELECT […] COUNT(列名)
FROM Shohin;

A

DISTINCT