9-DBMS- Normalization
9-DBMS- Normalization
Functional Dependencies
Akhilesh Arya
EmpNum EmpEmail
DeptNum DeptName
Also,
any relation that is in BCNF, is in 3NF;
any relation in 3NF is in 2NF; and
any relation in 2NF is in 1NF.
•The benefit of higher normal forms is that update semantics for the affected data
are simplified.
•This means that applications required to maintain the database are simpler.
•A design that has a lower normal form than another design has more redundancy.
Uncontrolled redundancy can lead to data integrity problems.
No duplicate rows: Each row in the table must be unique. This is achieved
by having a primary key column that uniquely identifies each row in the
table. No two rows should be identical.
Atomic values: Each column in a table should contain only atomic values,
which are indivisible and cannot be further broken down. This means that a
column should not contain multiple values or arrays of values. If a column
contains multiple values, it should be split into separate columns.
Ecode Dept
Akhilesh Deep Arya: 9460508551
Third Normal Form
Third Normal Form
• A relation is in 3NF if the relation is in 2NF and all determinants of non-
key attributes are candidate keys
That is, for any functional dependency: X Y, where Y is a non-key
attribute (or a set of non-key attributes), X is a candidate key.
• This definition of 3NF differs from BCNF only in the specification of
non-key attributes - 3NF is weaker than BCNF. (BCNF requires all
determinants to be candidate keys.)
• A relation in 3NF will not have any transitive dependencies
of non-key attribute on a candidate key through another non-key attribute.
CustID Name
CustID Salesperson BUT
CustID Region
CustID Salesperson Region
All this is OK Transitive dependency
(2nd NF) (not 3rd NF)
Akhilesh Deep Arya: 9460508551
Figure 5.25 -- Removing a transitive dependency
Salesperson Region
CustID Name
CustID Salesperson
student_no instr_no
course_no instr_no