What is normalization in DBMS?
Normalization is a property of database to reduce or minimize the redundancy and anomalies by decomposing the database table . Normalization is the step by step decomposition of one relation into sub-relation to achieve highest normal form.
Importance of Normalization:
- Used to reduce redundancy or repeating value.
- Used to reduce anomalies.
- Used to de-centralization of data.
- Used to minimize the null value.
- First normal form (1NF)
- Second normal form (2NF)
- Third normal form (3NF)
- Boyce Codd normal form (BCNF)
- Fourth normal form (4NF)
- Fifth normal form (5NF)
First normal form (1NF) : A relation is said to be in first normal form if it not contain any repeating groups. each value should be single . There are two methods to solve 1NF
- Flattering of table : In this method we remove the repeating groups filling in the missing entry of each incomplete row of the tables with the copy of their corresponding null repeating attributes.
- Decomposition of table : In this approach we decompose the table into new table by certain rules.
- rule -1 : One of the table contains primary key of original table + all the non-repeating attributes. non repeating attribute for example :course code , course name .
- rule-2 : The other table contains the copy of primary key + all the repeating attributes. example of repeating attributes : student name , teacher name .
Third normal form (3NF) : A relation is said to be in 3NF if it is in 2NF and should not contain any transitive dependency.
Boyce Codd normal form (BCNF) : A relation is said to be in BCNF if it is in 3NF and L.H.S of functional dependency must contain candidate key or Super key.
Fourth normal form (4NF) : A relation is said to be in 4NF if it is in 3NF or BCNF form . and it should not contain multivalued dependency. Multivalued dependency is the dependency where one attribute derives more attribute.
example : Customer name (X) City (Y)
RAM NEW DELHI
RAM MUMBAI
SITA MUMBAI
Here X multi determines Y.
Fifth normal form (5NF) : A relation is said to in 5NF if it is in 4NF. it should not have join dependency and also the joining must be lossless. a join dependency is a constraint on the set of legal relations over a database scheme.
Good
ReplyDelete