Normalization Flashcards

1
Q

Important properties of well designed relational schema

A

1) Relations consist of attributes that are logically related
2) Lossless-join property: Ensures that information decomposed across many relations can be reconstructed using natural joins
3) Dependencies preservation property - Ensures that constraints on the original relation can be maintained by enforcing constraints on normalized relations

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

Functional dependency

A

X -> Y
X functionally determines Y
Y is functionally dependent on X

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

Algorithm for attribute closure

A

Given a set of attributes X
Let X^+ = X
Repeat
- Find a FD in F whose left side is a subset of X^+
- Add the right side of F to X^+
Until (X^+ does not change)

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

!NF

A

First normal form: All attribute values are atomic

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

2NF

A

All non-key attributes full FD on a candidate key

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

3NF

A

All attributes are FD by a candidate key or are a part of a candidate key

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

BCNF

A

All attributes are only FD by a candidate key

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

4NF

A

No multi-value dependencies exists

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

5NF

A

No join dependencies exist

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

Algorithm for cinverting to BCNF

A

Look among the given FDs for a BCNF violation X -> Y
Compute X^+
Replace R by relations with schemas
Project the FDs onto the two new relations

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