SlideShare a Scribd company logo
Normalization
Lecture 2
Assistant Lecturer Huda A. Alameen
hudaa.alameen@uokufa.edu.iq
Redundant information in tuples and update
anomalies
 Information is stored redundantly
 Storage waste.
 Causes problems with update anomalies
•Insertion anomalies
•Deletion anomalies
•Update anomalies
Two relation schemas suffering from update
anomalies
Ename Ssn Bdate Adrress Dnumber Dname Dmgr_ssn
John 111 1/1/1990 A 5 R 33333
Smith 222 2/10/1988 B 5 R 33333
Zaid 112 5/8/1990 C 7 F 3335
NOOR 321 5/8/1990 Y 8 W 21333
Ali 342 2/11/1993 E 7 F 3335
Two relation schemas suffering from
update anomalies
• Insertion anomalies occur in PROJECT-EMPLOYEE relation because we can not insert
information about any new employee unless that employee is already assigned to a project.
Any attribute of the composite key (Proj-ID,Emp-ID) can not be NULL.
• Deletion anomalies occur when we delete the last tuple of a particular employee. In
this case, we not only delete the project information that connects that employee to a
particular project but also lose other information about the department for which this
employee works.
Two relation schemas suffering from
update anomalies
• Update anomalies occur because the department for which an employee works may
appear many times in the table. It is this redundancy of information that causes the
anomaly because if an employee moves to another department, we are now faced with
two problems: we either search the entire table looking for that employee and update
his Emp-Dpt value or we miss one or more tuples of that employee and end up with an
inconsistent state.
Normalization
 Normalization:
The process of decomposing unsatisfactory “bad” relations by breaking up their
attributes into smaller relations.
 Normal form:
Condition using keys and FDs of a relation to certify whether a relation schema is
in a normal form.
Functional Dependency
Example of FD constraints
Normal Forms
 First normal Form
 Second normal form
 Third normal form
 Boyce Codd Normal form
 Fourth normal form
 Fifth normal form
1NF : First Normal Form
 Disallows
-Multivalued attributes
-Composite attributes
Normalization of nested relations into
1NF
2NF : Second Normal Form
 Uses the concepts of FDs, primary key
 Definitions
Prime attribute: An attribute that is member of the primary key K
Full functional dependency: a FD Y -> Z where removal of any attribute from Y
means the FD does not hold any more
 Examples:
{SSN, PNUMBER} -> HOURS is a full FD since neither SSN -> HOURS nor PNUMBER
-> HOURS hold
{SSN, PNUMBER} -> ENAME is not a full FD (it is called a partial dependency )
since SSN -> ENAME also holds
2NF : Second Normal Form
 A relation schema R is in second normal form (2NF) if every non-
prime attribute A in R is fully functionally dependent on the primary
key
 R can be decomposed into 2NF relations via the process of 2NF
normalization
2NF : Second Normal Form
3NF : Third Normal Form
 Disallows Transitive Dependency
 Definition:
Transitive functional dependency: a FD X -> Z that can be
derived from two FDs X -> Y and Y -> Z
 Examples:
SSN -> DMGRSSN is a transitive FD
Since SSN -> DNUMBER and DNUMBER -> DMGRSSN hold
SSN -> ENAME is non-transitive
Since there is no set of attributes X where SSN -> X
and X -> ENAME
3NF : Third Normal Form

More Related Content

What's hot

Database - Normalization
Database - NormalizationDatabase - Normalization
Database - Normalization
Mudasir Qazi
 
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)
Vidyasagar Mundroy
 
Normal forms
Normal formsNormal forms
Normal forms
Samuel Igbanogu
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Edward Blurock
 
Normalization 1 nf,2nf,3nf,bcnf
Normalization 1 nf,2nf,3nf,bcnf Normalization 1 nf,2nf,3nf,bcnf
Normalization 1 nf,2nf,3nf,bcnf
Shriya agrawal
 
Normalization(15.09.2010)
Normalization(15.09.2010)Normalization(15.09.2010)
Normalization(15.09.2010)
Ravi Shekhar
 
Computer Scinece:RDBMS :Normalisation
Computer Scinece:RDBMS :NormalisationComputer Scinece:RDBMS :Normalisation
Computer Scinece:RDBMS :Normalisation
St Mary's College,Thrissur,Kerala
 
Difference between annotated and labelled
Difference between annotated and labelledDifference between annotated and labelled
Difference between annotated and labelled
ivisdude82
 

What's hot (9)

Database - Normalization
Database - NormalizationDatabase - Normalization
Database - Normalization
 
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)
 
Normal forms
Normal formsNormal forms
Normal forms
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Normalization 1 nf,2nf,3nf,bcnf
Normalization 1 nf,2nf,3nf,bcnf Normalization 1 nf,2nf,3nf,bcnf
Normalization 1 nf,2nf,3nf,bcnf
 
Slide4 er-stu
Slide4 er-stuSlide4 er-stu
Slide4 er-stu
 
Normalization(15.09.2010)
Normalization(15.09.2010)Normalization(15.09.2010)
Normalization(15.09.2010)
 
Computer Scinece:RDBMS :Normalisation
Computer Scinece:RDBMS :NormalisationComputer Scinece:RDBMS :Normalisation
Computer Scinece:RDBMS :Normalisation
 
Difference between annotated and labelled
Difference between annotated and labelledDifference between annotated and labelled
Difference between annotated and labelled
 

Similar to Normalization

Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Pyingkodi Maran
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)
Oum Saokosal
 
free Video lecture in India
free Video lecture in Indiafree Video lecture in India
free Video lecture in India
Edhole.com
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptx
arjun431527
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in india
Edhole.com
 
Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.ppt
Deependra35
 
Normalization1
Normalization1Normalization1
Normalization
NormalizationNormalization
Normalization
rehanlko007
 
week 7 normalization.pptx
week 7 normalization.pptxweek 7 normalization.pptx
week 7 normalization.pptx
ashfaqahmad757727
 
Normalisation
NormalisationNormalisation
Normalisation
Soumyajit Dutta
 
Database normalaization with examples.pptx
Database normalaization with examples.pptxDatabase normalaization with examples.pptx
Database normalaization with examples.pptx
chandugoswami
 
Chapter 9
Chapter 9Chapter 9
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
Infinity Tech Solutions
 
6. normalization
6. normalization6. normalization
6. normalization
khoahuy82
 
Normalization
NormalizationNormalization
Normalization
Sakshi Jaiswal
 
Normal forms & Normalization.pptx
Normal forms & Normalization.pptxNormal forms & Normalization.pptx
Normal forms & Normalization.pptx
ShubhamSharma34690
 
Relational database design
Relational database designRelational database design
Relational database design
SURBHI SAROHA
 
Impact of Normalization in Future
Impact of Normalization in FutureImpact of Normalization in Future
Impact of Normalization in Future
ijtsrd
 
chapter_8.pptx
chapter_8.pptxchapter_8.pptx
chapter_8.pptx
InduVerma40
 

Similar to Normalization (19)

Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)
 
free Video lecture in India
free Video lecture in Indiafree Video lecture in India
free Video lecture in India
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptx
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in india
 
Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.ppt
 
Normalization1
Normalization1Normalization1
Normalization1
 
Normalization
NormalizationNormalization
Normalization
 
week 7 normalization.pptx
week 7 normalization.pptxweek 7 normalization.pptx
week 7 normalization.pptx
 
Normalisation
NormalisationNormalisation
Normalisation
 
Database normalaization with examples.pptx
Database normalaization with examples.pptxDatabase normalaization with examples.pptx
Database normalaization with examples.pptx
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
 
6. normalization
6. normalization6. normalization
6. normalization
 
Normalization
NormalizationNormalization
Normalization
 
Normal forms & Normalization.pptx
Normal forms & Normalization.pptxNormal forms & Normalization.pptx
Normal forms & Normalization.pptx
 
Relational database design
Relational database designRelational database design
Relational database design
 
Impact of Normalization in Future
Impact of Normalization in FutureImpact of Normalization in Future
Impact of Normalization in Future
 
chapter_8.pptx
chapter_8.pptxchapter_8.pptx
chapter_8.pptx
 

More from Huda Alameen

Architectural design
Architectural designArchitectural design
Architectural design
Huda Alameen
 
System Modeling
System ModelingSystem Modeling
System Modeling
Huda Alameen
 
Requirements Engineering
Requirements EngineeringRequirements Engineering
Requirements Engineering
Huda Alameen
 
Java Repetiotion Statements
Java Repetiotion StatementsJava Repetiotion Statements
Java Repetiotion Statements
Huda Alameen
 
Java input Scanner
Java input Scanner Java input Scanner
Java input Scanner
Huda Alameen
 
Java Print method
Java  Print methodJava  Print method
Java Print method
Huda Alameen
 
Softweare Engieering
Softweare Engieering Softweare Engieering
Softweare Engieering
Huda Alameen
 
Softweare Engieering
Softweare Engieering Softweare Engieering
Softweare Engieering
Huda Alameen
 
Structured query language(sql)
Structured query language(sql)Structured query language(sql)
Structured query language(sql)
Huda Alameen
 
Sql viwes
Sql viwesSql viwes
Sql viwes
Huda Alameen
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
Huda Alameen
 
Lecture one db
Lecture one dbLecture one db
Lecture one db
Huda Alameen
 
Introduction to structured query language
Introduction to structured query languageIntroduction to structured query language
Introduction to structured query language
Huda Alameen
 
Indexing techniques
Indexing techniquesIndexing techniques
Indexing techniques
Huda Alameen
 
Agg fun
Agg funAgg fun
Agg fun
Huda Alameen
 
Se lec1 (1)
Se lec1 (1)Se lec1 (1)
Se lec1 (1)
Huda Alameen
 
Se lec6
Se lec6Se lec6
Se lec6
Huda Alameen
 
Se lec5
Se lec5Se lec5
Se lec5
Huda Alameen
 
Se lec 4
Se lec 4Se lec 4
Se lec 4
Huda Alameen
 
Se lec 3
Se lec 3Se lec 3
Se lec 3
Huda Alameen
 

More from Huda Alameen (20)

Architectural design
Architectural designArchitectural design
Architectural design
 
System Modeling
System ModelingSystem Modeling
System Modeling
 
Requirements Engineering
Requirements EngineeringRequirements Engineering
Requirements Engineering
 
Java Repetiotion Statements
Java Repetiotion StatementsJava Repetiotion Statements
Java Repetiotion Statements
 
Java input Scanner
Java input Scanner Java input Scanner
Java input Scanner
 
Java Print method
Java  Print methodJava  Print method
Java Print method
 
Softweare Engieering
Softweare Engieering Softweare Engieering
Softweare Engieering
 
Softweare Engieering
Softweare Engieering Softweare Engieering
Softweare Engieering
 
Structured query language(sql)
Structured query language(sql)Structured query language(sql)
Structured query language(sql)
 
Sql viwes
Sql viwesSql viwes
Sql viwes
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
Lecture one db
Lecture one dbLecture one db
Lecture one db
 
Introduction to structured query language
Introduction to structured query languageIntroduction to structured query language
Introduction to structured query language
 
Indexing techniques
Indexing techniquesIndexing techniques
Indexing techniques
 
Agg fun
Agg funAgg fun
Agg fun
 
Se lec1 (1)
Se lec1 (1)Se lec1 (1)
Se lec1 (1)
 
Se lec6
Se lec6Se lec6
Se lec6
 
Se lec5
Se lec5Se lec5
Se lec5
 
Se lec 4
Se lec 4Se lec 4
Se lec 4
 
Se lec 3
Se lec 3Se lec 3
Se lec 3
 

Recently uploaded

Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
Richard Gill
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
YOGESH DOGRA
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
Areesha Ahmad
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
Areesha Ahmad
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
kumarmathi863
 
Structural Classification Of Protein (SCOP)
Structural Classification Of Protein  (SCOP)Structural Classification Of Protein  (SCOP)
Structural Classification Of Protein (SCOP)
aishnasrivastava
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
pablovgd
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
DiyaBiswas10
 
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
NathanBaughman3
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
subedisuryaofficial
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
muralinath2
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
Columbia Weather Systems
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
AADYARAJPANDEY1
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classification
anitaento25
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
muralinath2
 
Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...
Sérgio Sacani
 

Recently uploaded (20)

Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
 
Structural Classification Of Protein (SCOP)
Structural Classification Of Protein  (SCOP)Structural Classification Of Protein  (SCOP)
Structural Classification Of Protein (SCOP)
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
 
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classification
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
 
Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...
 

Normalization

  • 1. Normalization Lecture 2 Assistant Lecturer Huda A. Alameen hudaa.alameen@uokufa.edu.iq
  • 2. Redundant information in tuples and update anomalies  Information is stored redundantly  Storage waste.  Causes problems with update anomalies •Insertion anomalies •Deletion anomalies •Update anomalies
  • 3. Two relation schemas suffering from update anomalies
  • 4. Ename Ssn Bdate Adrress Dnumber Dname Dmgr_ssn John 111 1/1/1990 A 5 R 33333 Smith 222 2/10/1988 B 5 R 33333 Zaid 112 5/8/1990 C 7 F 3335 NOOR 321 5/8/1990 Y 8 W 21333 Ali 342 2/11/1993 E 7 F 3335
  • 5. Two relation schemas suffering from update anomalies • Insertion anomalies occur in PROJECT-EMPLOYEE relation because we can not insert information about any new employee unless that employee is already assigned to a project. Any attribute of the composite key (Proj-ID,Emp-ID) can not be NULL. • Deletion anomalies occur when we delete the last tuple of a particular employee. In this case, we not only delete the project information that connects that employee to a particular project but also lose other information about the department for which this employee works.
  • 6. Two relation schemas suffering from update anomalies • Update anomalies occur because the department for which an employee works may appear many times in the table. It is this redundancy of information that causes the anomaly because if an employee moves to another department, we are now faced with two problems: we either search the entire table looking for that employee and update his Emp-Dpt value or we miss one or more tuples of that employee and end up with an inconsistent state.
  • 7. Normalization  Normalization: The process of decomposing unsatisfactory “bad” relations by breaking up their attributes into smaller relations.  Normal form: Condition using keys and FDs of a relation to certify whether a relation schema is in a normal form.
  • 9. Example of FD constraints
  • 10. Normal Forms  First normal Form  Second normal form  Third normal form  Boyce Codd Normal form  Fourth normal form  Fifth normal form
  • 11.
  • 12. 1NF : First Normal Form  Disallows -Multivalued attributes -Composite attributes
  • 13.
  • 14.
  • 15. Normalization of nested relations into 1NF
  • 16. 2NF : Second Normal Form  Uses the concepts of FDs, primary key  Definitions Prime attribute: An attribute that is member of the primary key K Full functional dependency: a FD Y -> Z where removal of any attribute from Y means the FD does not hold any more  Examples: {SSN, PNUMBER} -> HOURS is a full FD since neither SSN -> HOURS nor PNUMBER -> HOURS hold {SSN, PNUMBER} -> ENAME is not a full FD (it is called a partial dependency ) since SSN -> ENAME also holds
  • 17. 2NF : Second Normal Form  A relation schema R is in second normal form (2NF) if every non- prime attribute A in R is fully functionally dependent on the primary key  R can be decomposed into 2NF relations via the process of 2NF normalization
  • 18. 2NF : Second Normal Form
  • 19. 3NF : Third Normal Form  Disallows Transitive Dependency  Definition: Transitive functional dependency: a FD X -> Z that can be derived from two FDs X -> Y and Y -> Z  Examples: SSN -> DMGRSSN is a transitive FD Since SSN -> DNUMBER and DNUMBER -> DMGRSSN hold SSN -> ENAME is non-transitive Since there is no set of attributes X where SSN -> X and X -> ENAME
  • 20. 3NF : Third Normal Form