Theory - Databases And SQL Flashcards

1
Q

Benefits of relational databases

A

Reduces data redundancy
Reduces data inconsistency

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

Flat-file databases

A

Store all the data in one table, which makes them simple to set up and understand

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

Relational databases

A

More complicated - they are made up of multiple tables that are often linked together using primary keys (see above) and foreign keys (see below)

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

Foreign key

A

Field that references the primary key of another table
This creates a link between two tables, as shown below

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