4.10 - Fundamentals of databases Flashcards

1
Q

Why are databases normalised?

A

So that they can be efficient without any compromise to the integrity of the data. It involves ensuring that entities contain no redundant or repeated data.

A normalised database allows faster searching and sorting thanks to smaller tables.

Easier to maintain

Duplication of data minimised and data consistency improved, helping to reduce number of update, insertion and deletion anomalies that occur.

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

What is first normal form?

A

When there are no repeating attributes

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

What is second normal form?

A

When there are no partial key dependencies - every attribute is dependent on the whole key.

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

What is third normal form?

A

When there are no non-key dependencies.

All non-key attributes depend on the key, the whole key and nothing but the key.

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

What is concurrent access?

A

When two or more different users in a client server database system attempt to access the same field at the same time.

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

How do record locks work?

A

When a record is accessed by one user it is immediately locked to other users until the first user finishes using it.

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

How does serialisation work?

A

Requests from other users are placed in a queue. Once the first user has finished using the field, the next command in the queue is executed.

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

How does timestamp ordering work?

A

Each command assigned a timestamp which marks point in time at which command was initiated. Commands then carried out in order of timestamps.

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