1
Database
Management System
Department of Computer Science and Engineering
Chitkara University, Punjab
2
First Normal Form (1NF)
• A relation or table can only be considered in 1NF if it contains only
single atomic values.
• 1NF disallows having a set of values, a tuple of values, or a
combination of both as an attribute value for a single tuple.
• In other words, 1NF disallows relations within relations or relations
as attribute values within tuples.
• The only attribute values permitted by 1NF are single atomic values.
3
4
Second Normal Form
• Second normal form (2NF) is based on the concept of full functional
dependency.
• A functional dependency X → Y is a full functional dependency if
removal of any attribute A from X means that the dependency does
not hold anymore; that is, for any attribute A ε X, (X − {A}) does
not functionally determine Y.
• A functional dependency X → Y is a partial dependency if some
attribute A ε X can be removed from X and the dependency still
holds; that is, for some A ε X, (X − {A}) → Y.
• A relation schema R is in 2NF if every nonprime attribute A in R is
fully functionally dependent on the primary key of R.
5
6
Third Normal Form
• Third normal form (3NF) is based on the concept of transitive
dependency.
• A functional dependency X → Y in a relation schema R is a
transitive dependency if there exists a set of attributes Z in R that is
neither a candidate key nor a subset of any key of R, and both X →
Z and Z → Y hold.
• A relation schema R is in 3NF if it satisfies 2NF and no nonprime
attribute of R is transitively dependent on the primary key.
7
8
Boyce Codd Normal Form (BCNF)
• Boyce-Codd normal form (BCNF) was proposed as a simpler form
of 3NF, but it was found to be stricter than 3NF.
• That is, every relation in BCNF is also in 3NF; however, a relation
in 3NF is not necessarily in BCNF.
• A relation schema R is in BCNF if whenever a nontrivial functional
dependency X → A holds in R, then X is a superkey of R.
9
• Example schema that is not in BCNF:
in_dep (ID, name, salary, dept_name, building, budget )
because :
– dept_name building, budget (holds on in_dep)
but dept_name is not a superkey
• When decompose in_dept into instructor and department
– instructor is in BCNF
– department is in BCNF
10
(a) LOTS1A is in 3NF but not in BCNF
(b) it is in 3NF, but not in BCNF due
to the f.d. C B.
→
11
Fourth Normal Form
• A relation schema R is in 4NF with respect to a set D of functional
and multi-valued dependencies if for all multi-valued dependencies
in D+
of the form   , where   R and   R, at least one
of the following hold:
–    is trivial (i.e.,    or    = R)
–  is a superkey for schema R
• If a relation is in 4NF it is in BCNF
12
(a) The EMP relation with two MVDs: Ename –>> Pname and
Ename –>> Dname. (b) Decomposing the EMP relation into two
4NF relations EMP_PROJECTS and EMP_DEPENDENTS.
13
Fifth Normal Form
• A relation schema R is in fifth normal form (5NF) (or Project-Join
Normal Form (PJNF)) with respect to a set F of functional, multi-
valued, and join dependencies if,
– for every nontrivial join dependency JD(R1
, R2
, ..., Rn
) in F+
(that
is, implied by F),
• every Ri is a superkey of R.
• Discovering join dependencies in practical databases with hundreds
of relations is next to impossible. Therefore, 5NF is rarely used in
practice.
14

More Related Content

PPT
Normalisation of something i dont know and will never know
PPTX
Normalization in data base management system.pptx
PPTX
chapter_8.pptx
PPT
Normalization
PDF
Normalization in DBMS
PPT
DBMS-3.1 Normalization upto boyscodd normal form
PPT
DBMS-3.1 Normalization data base management system.ppt
PPT
free Video lecture in India
Normalisation of something i dont know and will never know
Normalization in data base management system.pptx
chapter_8.pptx
Normalization
Normalization in DBMS
DBMS-3.1 Normalization upto boyscodd normal form
DBMS-3.1 Normalization data base management system.ppt
free Video lecture in India

Similar to DBMS:- First normal to fifth normal form (20)

PPT
Database management system module -3 bcs403
PDF
Database management system session 5
PPTX
Normal forms & Normalization.pptx
PDF
DBMS lecture on Functional Dependency.pdf
PDF
DBMS lecture on Functional Dependency for Mathematical students(2nd Sem).pdf
PPTX
Normalization and three normal forms.pptx
PPT
Normalization
PPT
Normalization(15.09.2010)
PPTX
Normalization
DOC
Chapter-13-solutions
PPTX
UNIT 2 -PPT.pptx
PDF
Types of normalization
PPT
Normalization, Functional Dependencies, Normal Forms.ppt
PPT
8 Normalization (1).ppt
PPT
8 Normalization.ppt
PPT
18.2.14
PPT
8 normalization
PDF
Normalization (1)
Database management system module -3 bcs403
Database management system session 5
Normal forms & Normalization.pptx
DBMS lecture on Functional Dependency.pdf
DBMS lecture on Functional Dependency for Mathematical students(2nd Sem).pdf
Normalization and three normal forms.pptx
Normalization
Normalization(15.09.2010)
Normalization
Chapter-13-solutions
UNIT 2 -PPT.pptx
Types of normalization
Normalization, Functional Dependencies, Normal Forms.ppt
8 Normalization (1).ppt
8 Normalization.ppt
18.2.14
8 normalization
Normalization (1)
Ad

Recently uploaded (20)

PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
Building constraction Conveyance of water.pptx
PDF
Design Guidelines and solutions for Plastics parts
PPTX
mechattonicsand iotwith sensor and actuator
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
Computer organization and architecuture Digital Notes....pdf
PPTX
Chapter 2 -Technology and Enginerring Materials + Composites.pptx
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
Software Engineering and software moduleing
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Principal presentation for NAAC (1).pptx
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
wireless networks, mobile computing.pptx
PDF
Java Basics-Introduction and program control
PPTX
Amdahl’s law is explained in the above power point presentations
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Abrasive, erosive and cavitation wear.pdf
Building constraction Conveyance of water.pptx
Design Guidelines and solutions for Plastics parts
mechattonicsand iotwith sensor and actuator
ai_satellite_crop_management_20250815030350.pptx
Computer organization and architecuture Digital Notes....pdf
Chapter 2 -Technology and Enginerring Materials + Composites.pptx
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Management Information system : MIS-e-Business Systems.pptx
Soil Improvement Techniques Note - Rabbi
Software Engineering and software moduleing
Information Storage and Retrieval Techniques Unit III
Principal presentation for NAAC (1).pptx
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
wireless networks, mobile computing.pptx
Java Basics-Introduction and program control
Amdahl’s law is explained in the above power point presentations
Ad

DBMS:- First normal to fifth normal form

  • 1. 1 Database Management System Department of Computer Science and Engineering Chitkara University, Punjab
  • 2. 2 First Normal Form (1NF) • A relation or table can only be considered in 1NF if it contains only single atomic values. • 1NF disallows having a set of values, a tuple of values, or a combination of both as an attribute value for a single tuple. • In other words, 1NF disallows relations within relations or relations as attribute values within tuples. • The only attribute values permitted by 1NF are single atomic values.
  • 3. 3
  • 4. 4 Second Normal Form • Second normal form (2NF) is based on the concept of full functional dependency. • A functional dependency X → Y is a full functional dependency if removal of any attribute A from X means that the dependency does not hold anymore; that is, for any attribute A ε X, (X − {A}) does not functionally determine Y. • A functional dependency X → Y is a partial dependency if some attribute A ε X can be removed from X and the dependency still holds; that is, for some A ε X, (X − {A}) → Y. • A relation schema R is in 2NF if every nonprime attribute A in R is fully functionally dependent on the primary key of R.
  • 5. 5
  • 6. 6 Third Normal Form • Third normal form (3NF) is based on the concept of transitive dependency. • A functional dependency X → Y in a relation schema R is a transitive dependency if there exists a set of attributes Z in R that is neither a candidate key nor a subset of any key of R, and both X → Z and Z → Y hold. • A relation schema R is in 3NF if it satisfies 2NF and no nonprime attribute of R is transitively dependent on the primary key.
  • 7. 7
  • 8. 8 Boyce Codd Normal Form (BCNF) • Boyce-Codd normal form (BCNF) was proposed as a simpler form of 3NF, but it was found to be stricter than 3NF. • That is, every relation in BCNF is also in 3NF; however, a relation in 3NF is not necessarily in BCNF. • A relation schema R is in BCNF if whenever a nontrivial functional dependency X → A holds in R, then X is a superkey of R.
  • 9. 9 • Example schema that is not in BCNF: in_dep (ID, name, salary, dept_name, building, budget ) because : – dept_name building, budget (holds on in_dep) but dept_name is not a superkey • When decompose in_dept into instructor and department – instructor is in BCNF – department is in BCNF
  • 10. 10 (a) LOTS1A is in 3NF but not in BCNF (b) it is in 3NF, but not in BCNF due to the f.d. C B. →
  • 11. 11 Fourth Normal Form • A relation schema R is in 4NF with respect to a set D of functional and multi-valued dependencies if for all multi-valued dependencies in D+ of the form   , where   R and   R, at least one of the following hold: –    is trivial (i.e.,    or    = R) –  is a superkey for schema R • If a relation is in 4NF it is in BCNF
  • 12. 12 (a) The EMP relation with two MVDs: Ename –>> Pname and Ename –>> Dname. (b) Decomposing the EMP relation into two 4NF relations EMP_PROJECTS and EMP_DEPENDENTS.
  • 13. 13 Fifth Normal Form • A relation schema R is in fifth normal form (5NF) (or Project-Join Normal Form (PJNF)) with respect to a set F of functional, multi- valued, and join dependencies if, – for every nontrivial join dependency JD(R1 , R2 , ..., Rn ) in F+ (that is, implied by F), • every Ri is a superkey of R. • Discovering join dependencies in practical databases with hundreds of relations is next to impossible. Therefore, 5NF is rarely used in practice.
  • 14. 14