Week 3 - SQL Flashcards
1
Q
Where does SQL stand for?
A
Structured Query Language
1
Q
Is SQL case sensitive?
A
NO (select = SELECT)
Table / Field names may be case
sensitive.
2
Q
Datatypes in MySQL can be broadly divided
into three categories:
A
Numeric
– Date Time
– String
3
Q
Numeric datatypes
A
- int, used for integer (whole) numbers
– float, used for floating point (decimal) numbers
4
Q
Time-related datatypes
A
– date
– time
– datetime
Date format: “yyyy‐mm‐dd”
Time format: “hh:mm:ss”
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