MySQL Flashcards

1
Q

What is SQL?

A

Structured Query Language. A language used for storing, retrieving and manipulating data in a relational database.

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

What is MySql?

A

A popular, open source, database. Think of MySQL as a brand of SQL database.

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

What is ERD?

A

An Entity Relationship Diagram. A visual representation of how your database looks and behaves.

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

What is a Primary Key?

A

A database column designated to uniquely identify each table record.

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

What type of data is an INT?

A

A number. In MySQL an INT can be between -2147483648 to 2147483647 for a signed integer or 0 and 4294967295 for unsigned.

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

What type of data is an VARCHAR? What does the 255 represent?

A

A VARCHAR is a string, 255 is the maximum length of that string.

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

What type of data is DATETIME?

A

It stores date and time information in the form of a string.

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

Why is MySQL referred to a relational database?

A

Because we can store relationships between tables.

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

What types of relationships exists?

A

One to One
One to Many
Many to Many
Self Join

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

What is a Foreign Key?

A

It’s used to link two tables together. It is the same number as the Primary Key of the row of data in the related table.

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