Professional Documents
Culture Documents
Normalization
Chapter 5.2
Normalization of Database Tables
Normalization is a process for assigning attributes to
entities. It reduces data redundancies and helps eliminate
the data anomalies.
Normalization works through a series of stages called
normal forms:
– First normal form (1NF)
– Second normal form (2NF)
– Third normal form (3NF)
– Boye Codd normal form
Project Num : 15
Project Name : Evergreen
Emp Num Emp Name Job Class Chr Hours Hrs Billed Total
101
102
103
105
After
Before
Dependency Diagram
1NF Definition – The primary key components are bold, underlined, and shaded in
a different color.
– The term first normal form (1NF) describes the
– The arrows above entities indicate all desirable dependencies,
tabular format in which: i.e., dependencies that are based on PK.
All the key attributes are defined. – The arrows below the dependency diagram indicate less
desirable dependencies -- partial dependencies and transitive
There are no repeating groups in the table. dependencies.
All attributes are dependent on the primary key.
Figure 1
Mã đơn Ngày đơn Mã khách Tên khách Mã hàng Tên hàng hóa số lượng đơn giá
Normalization is only one of many database design hàng hàng hóa
processing, reducing system speed. 009 15/08/2007 BBB Nguyễn Văn B 01 Bàn phím 50 25
009 15/08/2007 BBB Nguyễn Văn B 02 Màn hình 80 29
Normalization purity is often difficult to sustain in 009 15/08/2007 BBB Nguyễn Văn B 04 Webcam 20 27
the modern database environment. The conflict
between design efficiency, information 015
015
15/08/2007
15/08/2007
AAA
AAA
Nguyễn Văn A
Nguyễn Văn A
02
04
Màn hình
Webcam
500
60
30
27
requirements, and processing speed are often
resolved through compromises that include
denormalization.