Normalisation and Functional Dependancies Flashcards

1
Q

Define normalisation…

A

The process of optimising a data model in such a way to remove data duplication and reduce the possibility of insertion, update and modification anomalies.

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

List some benefits that normalisation has…

A

Reduce data redundancy.
Reduce complexity of database.
Reduce storage space database takes up on disk.

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

What are the 3 main characteristics desired in normalisation?

A
  • Minimise number of attributes used whilst still achieving data requirements.
  • Reduce data redundancy.
  • Group similar attributes into the same relation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are anomalies caused by?

A

Redundant data.

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

What are the 3 types of anomalies? Define each…

A

Insertion : Data is needed to create a record, but the data can’t be obtained unless the record already exists.
Modification : Modifications made to data is not universally done so due to data duplication.
Delete : Unwanted data is deleted, and accidentally deletes desired data along with it.

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

Explain each step of normalisation up to 3.5 (Boyce Codd Form)…

A

1NF : All rows must be unique, thus remove duplicate values and multi-values.
2NF : Remove all partial dependancies to ensure all non-prime attributes are fully functionally dependent on the primary key.
3NF : Remove transitive dependencies to ensure that all attributes in all relations are solely fully functionally dependant on the primary key.
BCNF : Make every determinant a candidate key.

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

Define a functional dependancy…

A

A relationship in which the co-domain is functionally dependant on the domain. For example A > B means each A can only relate one B, but each B can have multiple A’s mapping to it.

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

What is the determinant in a functional dependancy?

A

The LHS of the equation.

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

What are the 3 types of functional dependancies? Define each…

A

Fully Functionally Dependant : A functionally determines B, but B is not dependent on any subset of A.
Partially Functionally Dependant : If some attributes of A are removes, A still functionally determines B.
Transitively Functionally Dependant : A -> B, B -> C, therefore, A -> C.

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