DBS Assignment 3
DBS Assignment 3
ASSIGNMENT 3
SUBMITTED BY
SUBMITTED TO
DE-NORMALIZATION IN DATABASE
FOUR GUIDLINES
1. Carefully do a cost benefit analysis (frequency of use, additional storage, join time).
2. Do a data requirement and storage analysis.
3. Weigh against the maintenance issue of the redundant data (triggers used).
4. When in doubt , don’t de-normalize.
EXAMPLE
Advantages Disadvantages
PROPERTIES
A relation will be in 4NF if it is in Boyce Codd normal form and has no multi-valued
dependency.
For a dependency A → B, if for a single value of A, multiple values of B exists, then the
relation will be a multi-valued dependency.
EXAMPLE
5 NORMAL FORM
A relation R is in Fifth Normal Form if and only if everyone joins dependency in R is implied by
the candidate keys of R. A relation decomposed into two relations must have lossless
join Property, which ensures that no spurious or extra tuples are generated when relations are
reunited through a natural join.
PROPERTIES
A relation R is in 5NF if and only if it satisfies the following conditions:
1. R should be already in 4NF.
2. It cannot be further non loss decomposed (join dependency).
EXAMPLE
Consider the above schema, with a case as “if a company makes a product and an agent is an
agent for that company, then he always sells that product for the company”. Under these
circumstances, the ACP table is shown as:
6 NORMAL FORM
Sixth Normal Form (6NF) is a level of database normalization that is rarely encountered and is
considered quite advanced. It deals with situations where a table contains multiple independent
multi-valued facts about entities. In simpler terms, it's used when you have complex relationships
that can't be represented well in lower normal forms.
RULES
1. Atomicity
2. Full Normalization
3. Absence of Non-trivial Multi-valued Dependencies
4. Reflexivity
Minimality
5.
EXAMPLE