SlideShare ist ein Scribd-Unternehmen logo
1 von 10
BVM Engineering College
Subject: Database
Management System
Name Enrollment No.
Sagar Pandav 140070107028
Abhishek Parmar 140070107030
NORMAL FORMS
NORMAL FORM
 The process of decomposing relations into smaller
relations that
 conform to certain norms is called normalization
 Keys and FDs of a relation determine which normal
form a relation is in Different normal forms
 1NF: based on attributes only
 2NF, 3NF, BCNF: based on keys and FDs
 4NF: based on keys and multi-valued dependencies (MVDs)
 5NF or PJNF: based on keys and join dependencies
 DKNF: based on all constraints
First Normal Form (1NF)
 A relation is in 1NF if
 Every attribute must be atomic
 EX: Phone numbers
should be
 Nested relations:
 Employee(Id, Name, ProjId, Hrs)
 should be broken into
 (Id, Name) and (Id ,ProjId ,Hrs)
Id Name Phon
e
1 A {3,4}
2 B {5}
Id Name Phone
1 A 3
1 A 4
2 B 5
Project
Id Nam
e
ProjI
d
Hrs
1 A 1 30
1 A 2 20
2 B 2 25
2 B 3 10
Second normal form (2NF)
 A relation is in 2NF if
 Every non-key attribute is fully functionally dependent on every
key attribute
 No partial dependency
 Consider (Id, ProjId, Hrs, Name, ProjName) with FDs:
 (Id, ProjId) → (Hrs); (Id) → (Name); (ProjId) → (ProjName)
 It is not in 2NF since (Name) depends partially on
(Id, ProjId)
Second normal form (2NF)
 After 2NF normalization,
 (Id, ProjId, Hrs) with FD: (Id, ProjId) → (Hrs)
 (Id, Name) with FD: (Id) → (Name)
 (ProjId, ProjName) with FD:
(ProjId) → (ProjName)
Third normal form (3NF)
 A relation is in 3NF if
 It is in 2NF
 No non-key attribute is transitively dependent
on candidate key
 Consider (Id, Name, ProjId, ProjName) with FDs:
 (Id) → (Name, ProjId); (ProjId) → (ProjName)
 It is not in 3NF since (ProjName) depends
transitively on (Id) through (ProjId)
Third normal form (3NF)
 After 3NF normalization,
 (Id, Name, ProjId) with FD:
(Id) → (Name, ProjId)
 (ProjId, ProjName) with FD:
(ProjId) → (ProjName)
Boyce - Codd normal form
(BCNF)
 A relation is in BCNF if
 It is in 3NF
 If X → Y is a non-trivial FD, then X is a superkey of
relation R
 BCNF can lose FDs
 Consider (Id, Dist, Lot, Area) with FDs:
 (Id) → (Dist, Lot, Area); (Dist, Lot) → (Id, Area);
(Area) → (Dist)
 It is not in BCNF since (Area) is not a superkey although
(Area) →(Dist) holds
Boyce - Codd normal form
(BCNF)
 After BCNF normalization,
 (Id, Lot, Area) with FD: (Id) → (Dist, Lot, Area)
 (Dist, Area) with FD: (Area) → (Dist)
 Loses (Dist, Lot) → (Id, Area)
Normalization

Weitere ähnliche Inhalte

Was ist angesagt?

b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
Dimara Hakim
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational database
Jyoti Ranjan Pattnaik
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 

Was ist angesagt? (20)

normalization
normalizationnormalization
normalization
 
Normal forms
Normal formsNormal forms
Normal forms
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
GraphDay Stockholm - iKnow Solutions - The Value Add of Graphs to Analytics a...
GraphDay Stockholm - iKnow Solutions - The Value Add of Graphs to Analytics a...GraphDay Stockholm - iKnow Solutions - The Value Add of Graphs to Analytics a...
GraphDay Stockholm - iKnow Solutions - The Value Add of Graphs to Analytics a...
 
Bsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalizationBsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalization
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
 
DBMS Helping material
DBMS Helping materialDBMS Helping material
DBMS Helping material
 
Chapter10
Chapter10Chapter10
Chapter10
 
Decomposition using Functional Dependency
Decomposition using Functional DependencyDecomposition using Functional Dependency
Decomposition using Functional Dependency
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management System
 
Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)
 
Bt0065, c programming and data structures
Bt0065, c programming and data structuresBt0065, c programming and data structures
Bt0065, c programming and data structures
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational database
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Robust Coreference Resolution and Entity Linking on Dialogues: Character Iden...
Robust Coreference Resolution and Entity Linking on Dialogues: Character Iden...Robust Coreference Resolution and Entity Linking on Dialogues: Character Iden...
Robust Coreference Resolution and Entity Linking on Dialogues: Character Iden...
 
Mca 203
Mca 203Mca 203
Mca 203
 
ALGEBRAIC DEGREE ESTIMATION OF BLOCK CIPHERS USING RANDOMIZED ALGORITHM; UPPE...
ALGEBRAIC DEGREE ESTIMATION OF BLOCK CIPHERS USING RANDOMIZED ALGORITHM; UPPE...ALGEBRAIC DEGREE ESTIMATION OF BLOCK CIPHERS USING RANDOMIZED ALGORITHM; UPPE...
ALGEBRAIC DEGREE ESTIMATION OF BLOCK CIPHERS USING RANDOMIZED ALGORITHM; UPPE...
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
 

Andere mochten auch (6)

Bcnf
BcnfBcnf
Bcnf
 
Normalization in databases
Normalization in databasesNormalization in databases
Normalization in databases
 
Normalization case
Normalization caseNormalization case
Normalization case
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 

Kürzlich hochgeladen

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Kürzlich hochgeladen (20)

Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 

Normalization

  • 1. BVM Engineering College Subject: Database Management System Name Enrollment No. Sagar Pandav 140070107028 Abhishek Parmar 140070107030 NORMAL FORMS
  • 2. NORMAL FORM  The process of decomposing relations into smaller relations that  conform to certain norms is called normalization  Keys and FDs of a relation determine which normal form a relation is in Different normal forms  1NF: based on attributes only  2NF, 3NF, BCNF: based on keys and FDs  4NF: based on keys and multi-valued dependencies (MVDs)  5NF or PJNF: based on keys and join dependencies  DKNF: based on all constraints
  • 3. First Normal Form (1NF)  A relation is in 1NF if  Every attribute must be atomic  EX: Phone numbers should be  Nested relations:  Employee(Id, Name, ProjId, Hrs)  should be broken into  (Id, Name) and (Id ,ProjId ,Hrs) Id Name Phon e 1 A {3,4} 2 B {5} Id Name Phone 1 A 3 1 A 4 2 B 5 Project Id Nam e ProjI d Hrs 1 A 1 30 1 A 2 20 2 B 2 25 2 B 3 10
  • 4. Second normal form (2NF)  A relation is in 2NF if  Every non-key attribute is fully functionally dependent on every key attribute  No partial dependency  Consider (Id, ProjId, Hrs, Name, ProjName) with FDs:  (Id, ProjId) → (Hrs); (Id) → (Name); (ProjId) → (ProjName)  It is not in 2NF since (Name) depends partially on (Id, ProjId)
  • 5. Second normal form (2NF)  After 2NF normalization,  (Id, ProjId, Hrs) with FD: (Id, ProjId) → (Hrs)  (Id, Name) with FD: (Id) → (Name)  (ProjId, ProjName) with FD: (ProjId) → (ProjName)
  • 6. Third normal form (3NF)  A relation is in 3NF if  It is in 2NF  No non-key attribute is transitively dependent on candidate key  Consider (Id, Name, ProjId, ProjName) with FDs:  (Id) → (Name, ProjId); (ProjId) → (ProjName)  It is not in 3NF since (ProjName) depends transitively on (Id) through (ProjId)
  • 7. Third normal form (3NF)  After 3NF normalization,  (Id, Name, ProjId) with FD: (Id) → (Name, ProjId)  (ProjId, ProjName) with FD: (ProjId) → (ProjName)
  • 8. Boyce - Codd normal form (BCNF)  A relation is in BCNF if  It is in 3NF  If X → Y is a non-trivial FD, then X is a superkey of relation R  BCNF can lose FDs  Consider (Id, Dist, Lot, Area) with FDs:  (Id) → (Dist, Lot, Area); (Dist, Lot) → (Id, Area); (Area) → (Dist)  It is not in BCNF since (Area) is not a superkey although (Area) →(Dist) holds
  • 9. Boyce - Codd normal form (BCNF)  After BCNF normalization,  (Id, Lot, Area) with FD: (Id) → (Dist, Lot, Area)  (Dist, Area) with FD: (Area) → (Dist)  Loses (Dist, Lot) → (Id, Area)