5. Normalization - 6marks Flashcards

1
Q

A function dependency (FD) is

A

a constraint denoted X  Y between two sets of attributes X and Y from a relational schema R.

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

The FD specifies a restriction on

A

the possible tuples that can form a relation instance r of R

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

The inference rules for normalization are:

A

Acronym to remember: RATDUP

  1. Reflexive Rule: A set of attributes or a subset always determines itself and its superset.
  2. Augmentation Rule: Adding an additional attribute to both sides of a relation means it holds.
  3. Transitive Rule: eg X –> Y , Y –> Z | = X –> Z
  4. Decomposition Rule: If there is more than one attribute on the RHS this can be split (eg: X –> YZ |= X –> Y and X –> Z
  5. Union Rule: The opposite of decomposition, combining.
  6. Pseudotransitive Rule: Variation on rule 3: Eg: X –> Y , WY –> Z | = WX –> Z
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

First Normal Form (1NF) is:

A

• Normal DB form, with no violations (only atomics values, no redundancy, few null)

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

Second Normal Form (2NF) is:

A

• 1NF with No Partial dependency - so every non-prime attribute is fully functionally dependent on every key
(ie: fails 2NF if only part of the minimal key determines an attribute in that table)

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

Third Normal Form (3NF) is:

A

• 2NF with No Transitive dependency (ie: fails 3NF if A –> B and B –> C )

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

Boyce-Codd NF (BCNF) is:

A

• 3NF but with the LHS of functional dependencies are super keys.
Note that 3NF can be better than BCNF

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

General steps to achieve the highest normal form (to 3NF) are:

A
  1. Identify candidate keys
  2. What is the highest normal form
  3. Decompose if it is not in the highest normal form
How well did you know this?
1
Not at all
2
3
4
5
Perfectly