Normalisation Flashcards

1
Q

What is normalisation?

A

A set of rules to reorganise relations to reduce redundancy and improve integrity

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

Why normalise data?

A

Get rid of data anomalies which cause data inconsistencies

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

What are the three different types of data anomalies?

A
  • Insertion anomalies
  • Deletion anomalies
  • Update anomalies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a functional dependancy?

A

A constraint between two attributes where one attribute value (dependant) is determined by the other attribute value (determinant)

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

What is the determinant in a functional dependancy?

A

The attribute which uniquely identifies dependant
If a -> b, b is the dependant, a is the determinant

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

What is the invalid case in a function dependancy?

A

One to many relationship

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

What is a valid case in a functional dependancy?

A

Many to many
One to one
Many to one

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

What is a prime attribute?

A

An attribute which is part of the candidate key

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

What is a non-prime attribute?

A

An attribute which is not part of the candidate key

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

What is a partial dependancy?

A

A non-prime attribute that depends on part of the candidate key

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

What is a transitive dependancy?

A

A condition where A, B and C are attributes of a relation such that if A -> B and B -> C, then A -> C via B

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

What does A -> B mean?

A

B is functionally dependant on A

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

What are the steps to normalisation?

A

First normal form
Second normal form
Third normal form

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

Explain the characteristics of a relation in first normal form

A

Each row and column contains one and only one value
- No multivalued attributes

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

Explain the characteristics of a relation in second normal form

A
  • In first normal form
  • Any partial function dependancies are removed
  • Non key attributes are identified by the whole primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain the characteristics of a relation in third normal form

A
  • In second normal form
  • Any transitive dependancies are removed
  • Non key attributes are identified by only the primary key and nothing but the primary key
17
Q

If we break a relation into two smaller relations, to maintain data integrity you must:

A
  • Link the relations by a common attribute
  • Create primary key(s) for the new relation