- First Normal Form (1NF) :-
- Anomalies in the 1NF :-
- There is redundancy in INF relation, which will lead to variety of data anomalies or inconsistencies ,
- Insertion is very difficult.
- Deletion is very difficult. Suppose, if you want to delete the record of "Jones" from the above "STUDENT" table, then three records will be deleted. So, it is very difficult to delete a record.
- Updation is very difficult. Suppose, if you want to update the record of "Smith" from the above STUDENT" table, then which record is to be updated it is very difficult to decide.
- Second Normal Form (2NF) :-
Let us explain: -
Student_ld is the primary key attribute of the above "STUDENT" table. Out of the onc non-key attributes (Advisor, Advisor_Room, Class ld), Advisor and Advisor_ Roo functionally dependents on the primary key attribute Student_ld. But Classu functionally dependent on Studentld, because there are multiple Class_ld values for ca Student id in the above table. So, this relation is not in second normal fom (2NF).
To convert this relation into 2NF, simply split the table into two separate tadcd e for those attributes, which are dependant on the primary key attribute (Parent tabic Ceate for nd those attributes, which Create are not dependant on the primary kev (Child tadie relationships between these new tabBes through the use of foreign key .
- Third Normal Form (3NF) :-
For Example:-
- If A>B [B depends on A]
- B>C |depends on B|
Then we may derive - A>C ( C depends on A)
- Boyce-Codd Normal Form (BCNF) :-
- Fourth Normal Form (4NF) :-
In this case, relation R will be in the fourth normal form (4NF) if attributes B and C are dependent on each other. However if attributes B and C are independent of each other then relation R is not in the fourth normal form (4NF).
In the above EMP table.
- The attribute Department is multi-valued dependent on attribute Name.
Name >>Department - The attribute Language is multi-valued dependent on attribute Name.
Name>>Language
- Fifth Normal Form (5NF) :-
A relation R is in Fifth normal form (5NF) if it is already in 4NF and has no o dependency i.e. a relation cannot be decomposed any further. This normal form is also Kno as Project-join normal form (PJNF). It states that any fact should be able to be reconstracic without any anomalous results in any case, regardless of the number of tables being jo SNF table should have only candidate keys and its primary key should consist of onlyas ingie column. - Advantages of Normalization :-
- Normalization prevents data redundaney in the database and reduces s ensures that each piece of data is stored only once.
- It helps in maintaining data .
- A better handle on database security.
- Increased storage efficiency .
- Morc efficient and flexible data structure to organize the data records.
- Better understanding of data.
- Disadvantages of Normalization :-
- Normalizing a database is a complex and difficult task. Large databases with considerable amounts of information require careful analysis and design before they are normalized. .
- Requires more joins of tables to get the desired result. A poorly-written query can bring the database down. .
- Maintenance overhead. The higher the level of normalization, the greater the number /of tables in the database.