90 likes | 208 Vues
Database normalization is a crucial technique for designing relational tables to reduce information duplication and prevent data anomalies. By organizing data into tables based on relationships between columns, normalization ensures easier maintenance and improved data integrity. This guide explores the principles of normalization through practical examples, covering the first three normal forms (1NF, 2NF, and 3NF). With detailed illustrations of each step, it provides a clear roadmap for structuring your database efficiently.
E N D
Normalization Prepare by mu’tasem jarrah Mutasem.jarrah@yahoo.com
What is Normalization ? Database normalization is a technique for designing relational database tables to minimize duplication of information and, in so doing, to safeguard the database against certain types of logical or structural problems, namely data anomalies. to avoiding duplicate data and easy maintence it depends on entity relationship between columns
Comprehensive Example contains 1NF,2NF and 3NF * To get 1NF (Remove the Repeating groups)
Table 1 Table 2
Connection between table 1 & table 2? • Table1 (Receipt, Date, Customer_ID, Customer_Name, Phone, City) • Table2(Receipt, Vedio_ID, Vedio_Name, Type, Days, Cost) * To get 2NF (Identify & Remove Partial FD) • Table 2 : Table3, Table4 • Vedio_ID ----- [ Vedio_Name, Type, Days, Cost] Table 3
* To get 3NF (First Step – From table1) ---[ Table5,Table6] • Table1 ( Receipt, Date, Customer_ID, Customer_Name, Phone,City) • Customer_ID -----[Customer_Name, Phone,City]. Table 5 Table 6
(Second Step – From table3) • Vedio_ID ---[Vedio_Nmae] • Vedio_ID---[Type] • Type---[Days,cost] • From table3 :- Table7, Table8
Table 7 Table 8