Data Normalisation Flashcards

(7 cards)

1
Q

Explain

How do you normalise to first normal form?

(1NF)

A
  • Ensure there are no repeated columns
  • Ensure cell atomicity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Recall

How do you convert data to a relation?

A

Convert it to first normal form. (same criteria)

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

Define

Atomicity of database cells

A

Cells only contain a single piece of data

(i.e. not multiple pieces of data separated using commas)

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

Explain

How do you normalise to second normal form?

(2NF)

A
  • Have no partial dependencies

(if none are present, it’s already in 2NF.)

Prerequisite: data is in 1NF.

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

Define

Partial Dependency

A

When a non-key attribute depends on only part of a composite key, as opposed to the whole composite key.

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

Explain

How do you normalise to third normal form?

(3NF)

A
  • Have no transitive dependencies

Prerequisite: data is in 2NF.

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

Define

Transitive Dependency

A

when a non-key field is dependent on a field other than the primary key

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