Decomposition and Schema Normalization Flashcards

1
Q

What should good decomposition achieve?

A

minimize redundancy, avoid information loss (lossless-join), preserve the FDs (dependency preserving), ensure good query performance

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

Lossless join

A

If for any initial instance R,

the decomposed instance R’ = R

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

A decomposition is lossless-join iff at least one of the FDs in in F+

A

A1 ^ A2 -> A1

A1 ^ A2 -> A2

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

A decomposition is dependency preserving if

A

by enforcing FD F1 over R1 and FD F2 over R2, we can enforce F over R

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

Boyce Codd Normal Form (BCNF)

A

A relation is in BCNF if whenever X -> B is a non-trivial FD, then X is a superkey in R

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

BCNF other definition

A

For ever attribute set X:
either X+ = X
or X+ = all attributes

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

BCNF Decomposition Properties

A

BCNF decompostion:

  • removes certain types of redundancy
  • is a lossless join
  • is not always dependency preserving
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

3NF Definition

A

whenever X -> A, one of the following is true:
A in X (trivial FD)
X is a superkey
A is part of some key of R (prime attribute)

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

3NF Characteristics

A

Lossless join and dependency preserving decomposition into a collection of 3NF relations is always possible.

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

3NF Algorithm

A

Apply the algorithm for BCNF decomposition until all relations are in 3NF
compute a minimal basis F’ of F
For each non-preserved FD X-> A in F’, add a new relation R(X,A)

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

Is normalization always good?

A

No, suppose A and B are always used together, but normalization says they should be in diff talbes > performance loss

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