Databases — Normalisation Flashcards

(8 cards)

1
Q

True/False

All row data must depend on their respective keys.

A

True.

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

Explain

Purpose of data normalisation

A

Improve data integrity.

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

Recall

How is data converted to a relation?

A

By normalising it to 1NF.

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

Recall

What does the first normal form (1NF) of database normalisation entail?

A
  • Ensuring all data fields are atomic — that they only have one value within them
  • Remove all repeating attributes, make them a new table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Recall

What does the second normal form (2NF) of database normalisation entail?

A
  • Removing partial dependencies — If data has a composite key, and a non-key value doesn’t depend on every element of the composite key, remove it, potentially make it a new table.

[e.g., Student(Name (PK), CourseID (PK), CourseName) — CourseName only depends on CourseID, not StudentName]

[Data must also already be a relation (in 1NF)]

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

Define

Partial Dependency

A

Where a non-key data value depends on only part of a composite key.

(Data must have a composite key for this to be relevant)

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

What does the third normal form (3NF) of database normalisation entail?

A
  • Removing transitive dependencies — Where a non-key value depends on another non-key value.

(Data must also already be in 2NF)

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

Define

Transitive Dependency

A

Where a non-key value depends on another non-key value.

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