Week 3 - SQL Flashcards

1
Q

Where does SQL stand for?

A

Structured Query Language

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

Is SQL case sensitive?

A

NO (select = SELECT)
Table / Field names may be case
sensitive.

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

Datatypes in MySQL can be broadly divided
into three categories:

A

Numeric
– Date Time
– String

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

Numeric datatypes

A
  • int, used for integer (whole) numbers
    – float, used for floating point (decimal) numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Time-related datatypes

A

– date
– time
– datetime

Date format: “yyyy‐mm‐dd”
Time format: “hh:mm:ss”

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

String datatypes

A
  • char (bijv. always 3t)
    – varchar (bijv. 1-4b. Fourth b tells DBM that is has reached end of field —> therefore empty string required one b to store )
    – text (<255 characters)

char and varcharare good up to 255
characters

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