Types of Normal Forms in DBMS
- Unnormalized form or UNF
- First Normal Form or 1NF
- Second Normal Form or 2NF
- Third Normal Form or 3NF
- Elementary key normal form or EKNF
- Boyce Codd Normal Form or BCNF
- Fourth normal form or 4NF
- Essential tuple normal form or ETNF
- Fifth normal form or 5NF
- Domain-key normal form or DKNF
- Sixth normal form or 6NF
1. Unnormalized form or UNF:
Example:
StudentId Name Course 101 Raj Mathematics Chemistry 102 Nilesh Chemistry 103 Sanu Physics Chemistry
- UNF can deal with the complex data structures,
- querying in UNF is simpler,
- Restructuring the data is easier.
Example:
StudentId Name Course1 course2 101 Raj Mathematics Chemistry 102 Nilesh Chemistry 103 Sanu Physics Chemistry
- It is in first normal form or 1NF
- It doesn’t contain any partial dependencies. (It shouldn’t have any non-prime attribute which is functionally dependent on any proper subset of the candidate key of the relation.).
- R should be in 2NF
- X should be candidate key or superkey, or
- Y should be prime attribute
5. Elementary key normal form or EKNF:
- Y" title="Rendered by QuickLaTeX.com" height="20" width="101" style="vertical-align: -1px;">be any non-trivial functional dependency over the R is BCNF if X is a Candidate Key or a SuperKey. or
- Y" title="Rendered by QuickLaTeX.com" height="20" width="101" style="vertical-align: -1px;"> is a trivial functional dependency (i.e, Y subset of X),
7. Fourth normal form or 4NF:
->Y" title="Rendered by QuickLaTeX.com" height="20" width="156" style="vertical-align: -1px;">
- X is a candidate key or a super key of the relation, or
- X union Y = R
8. ETNF:
9. Fifth normal form or 5NF:
10. Domain-key normal form or DKNF:
- domain constraints,
- key constraints.
11. Sixth normal form or 6NF: