SlideShare a Scribd company logo
Normalization
CONTENT
What is Normalization?
2
Data Redundancy
Anomalies
First Normal Form
Second Normal Form
Third Normal Form
Boyce -Codd Normal Form
1.
What is
Normalization
“
Normalization is a technique of
organizing data into multiple related
tables ,to minimize Data Redundancy
4
Data Redundancy means repetition of data
5
Reason
Two different but related table stored together.
Issues
1. Repetition of data increases size of database
2. Causes Anomalies
Anomalies are problems that can occur in poorly planned , un-
normalized databases where all data is stored in same table
Types
To insert redundant data for every new row is a data insertion
anomaly.
Loss of related dataset when some other dataset is deleted is
a deletion anomaly.
A data inconsistency that results from data redudancy and
partial update is updation anomaly.
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
2
B CS Mr.x 2342
3
B CS Mr.x 2342
4
D CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
2
B CS Mr.x 2342
3
B CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
2
B CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
Student Table
Insertion and Deletion Anomaly
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
2
B CS Mr.x 2342
3
B CS Mr.x 2342
4
D CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x Mr.y 2342
2
B CS Mr.x 2342
3
B CS Mr.x 2342
4
D CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x Mr.y 2342
2
B CS Mr.x Mr.y 2342
3
B CS Mr.x 2342
4
D CS Mr.x 2342
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x Mr.y 2342
2
B CS Mr.x Mr.y 2342
3
B CS Mr.x 2342
4
D CS Mr.x Mr.y 2342
Student Table
Updation Anomaly
Roll No. Name Branch HOD Office_tel
1
A CS Mr.x 2342
2
B CS Mr.x 2342
3
B CS Mr.x 2342
4
D CS Mr.x 2342
Roll No. Name BranchID
1 A 1
2 B 1
3 B 1
4 D 1
BranchID HOD Office_tel
1 Mr.x 2342
Student Table
Dept Table
By dividing Student Table into Student and
Department Table we can eliminate all anomalies .
2.
1st Normal
Form
“
Every table in database should at least
follow the 1st normal form always . To be
in 1st normal form a table should follow
some rules.
11
▪Each table should
contain atomic values
12
Rule 1
colour A
Yellow 10,20,22
Blue 30,22,22
Orange 52,22,12
▪A column should
contain values of same
type
13
Rule 2
colour A
Yellow 22
Blue 22
12
Orange
▪Each column should
have a unique name
Place your screenshot here
14
Rule 3 colour A A
Yellow 22 20
Blue 22 15
Orange
12
24
colour A B
Yellow 22 20
Blue 22 15
Orange
12 24
3.
2st Normal
Form
“
For a table to be in second normal form :
▪It must be in 1st normal form
▪Their should be no partial dependency.
16
17
StudentID Name RegNo Branch Address
1
Akon CSE-18 CSE UP
2
Akon IT-18 IT UK
3
Bkon CSE-18 CSE MP
4
Dkon CSE-18 CSE RAJ
STUDENT TABLE
SubjectID SubjectName
1 C
2 C++
SUBJECT TABLE
SubjectID
StudentID
18
ScoreID StudentID SubjectID Marks Teacher
1 1 1 86 Mr.C
2 1 2 45 Mr.C++
3 3 1 98 Mr.C
4 2 1 78 Mr.C
SCORE TABLE
Partial Dependency
StudentID SubjectID Teacher
1. StudentID,SubjectID  ScoreID,Marks,Teacher
2. SubjectID  Teacher
19
Now the tables are in second Normal Form....
SubjectID SubjectName Teacher
1
C Mr.C
2
C++ Mr.C++
SUBJECT TABLE
ScoreID StudentID SubjectID Marks
1 1 1 86
2 1 2 45
3 3 1 98
4 2 1 78
SCORE TABLE
StudentID SubjectID
SubjectID
4.
3st Normal
Form
“
For a table to be in third normal form :
▪It must be in 2st normal form
▪Their should be no Transitive dependency.
21
22
ScoreID StudentID SubjectID Marks Exam_Name Total_Marks
1 123 1 23 PracticalC 30
2 124 1 12
PracticalC
30
StudentID SubjectID Total_Marks
Transitive Dependency
Exam_Name
1. StudentID,SubjectID  ScoreID,ExamName,Total_marks
2. ExamName Total_Marks
23
ScoreI
D
StudentI
D
SubjectID Mark
s
Teacher ExamID
1 123 1 23 Mr.C 1
2 124 1 12 Mr.C 1
Now the tables are in Third Normal Form....
ExamID Exam_N
ame
Total_Ma
rks
1
Practical
C
30
2
Practical
C++ 30
Student Table Exam Table
5.
Boyce Codd
Normal Form
“
For a table to be in boyce-codd normal form :
▪It must be in 3rd normal form.
▪For any dependency A B ,A should be a
super key.
25
26
StudentID Subject Professor
101 C++ p.Cpp
102 Python p.Python
103 Python p.Python2
104 Java p.java
COLLEGE ENROLLMENT TABLE
StudentID Subject
27
StudentID Subject Professor
COLLEGE ENROLLMENT TABLE
StudentID Subject
(student_id,subject) Professor
Professor Subject
Non prime attribute Non prime attribute
28
StudentID Professor
StudentID
Student Table
P ID Professor Subject
Student Table
P_ID
Professor Table
Now,our table is in BCNF
Thanks!
Any Questions ?
Presented By
•Manohar Bhasin
•Rishi Singh
•Sandeep kumar Singh

More Related Content

Similar to Normalization

Roja128
Roja128Roja128
Roja128
meherdeepu
 
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweqdbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
wrushabhsirsat
 
Chapter5.pptx
Chapter5.pptxChapter5.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptxI am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
istralthvi
 
Math 9 Quiz Bee.pptx
Math 9 Quiz Bee.pptxMath 9 Quiz Bee.pptx
Math 9 Quiz Bee.pptx
KristineDeLeon16
 
Normalization.ppt
Normalization.pptNormalization.ppt
Normalization.ppt
ssuser7e9b941
 
Database Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an exampleDatabase Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an example
SABITHARASSISTANTPRO
 
S1 Data Processing C.A 1
S1 Data Processing C.A 1S1 Data Processing C.A 1
S1 Data Processing C.A 1
Ejiro Ndifereke
 
Data Retrival
Data RetrivalData Retrival
Data Retrival
Er. Nawaraj Bhandari
 
database Normalization
database Normalizationdatabase Normalization
database Normalization
Harsiddhi Thakkar
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
Dan D'Urso
 

Similar to Normalization (11)

Roja128
Roja128Roja128
Roja128
 
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweqdbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
 
Chapter5.pptx
Chapter5.pptxChapter5.pptx
Chapter5.pptx
 
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptxI am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
 
Math 9 Quiz Bee.pptx
Math 9 Quiz Bee.pptxMath 9 Quiz Bee.pptx
Math 9 Quiz Bee.pptx
 
Normalization.ppt
Normalization.pptNormalization.ppt
Normalization.ppt
 
Database Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an exampleDatabase Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an example
 
S1 Data Processing C.A 1
S1 Data Processing C.A 1S1 Data Processing C.A 1
S1 Data Processing C.A 1
 
Data Retrival
Data RetrivalData Retrival
Data Retrival
 
database Normalization
database Normalizationdatabase Normalization
database Normalization
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 

Recently uploaded

BREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptxBREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
RASHMI M G
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills MN
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
David Osipyan
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
MAGOTI ERNEST
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
tonzsalvador2222
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
KrushnaDarade1
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
Texas Alliance of Groundwater Districts
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
Hitesh Sikarwar
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
European Sustainable Phosphorus Platform
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
University of Maribor
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
Equivariant neural networks and representation theory
Equivariant neural networks and representation theoryEquivariant neural networks and representation theory
Equivariant neural networks and representation theory
Daniel Tubbenhauer
 

Recently uploaded (20)

BREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptxBREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
Equivariant neural networks and representation theory
Equivariant neural networks and representation theoryEquivariant neural networks and representation theory
Equivariant neural networks and representation theory
 

Normalization

  • 2. CONTENT What is Normalization? 2 Data Redundancy Anomalies First Normal Form Second Normal Form Third Normal Form Boyce -Codd Normal Form
  • 4. “ Normalization is a technique of organizing data into multiple related tables ,to minimize Data Redundancy 4
  • 5. Data Redundancy means repetition of data 5 Reason Two different but related table stored together. Issues 1. Repetition of data increases size of database 2. Causes Anomalies
  • 6. Anomalies are problems that can occur in poorly planned , un- normalized databases where all data is stored in same table Types To insert redundant data for every new row is a data insertion anomaly. Loss of related dataset when some other dataset is deleted is a deletion anomaly. A data inconsistency that results from data redudancy and partial update is updation anomaly.
  • 7. Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 2 B CS Mr.x 2342 3 B CS Mr.x 2342 4 D CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 2 B CS Mr.x 2342 3 B CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 2 B CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 Roll No. Name Branch HOD Office_tel Student Table Insertion and Deletion Anomaly
  • 8. Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 2 B CS Mr.x 2342 3 B CS Mr.x 2342 4 D CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x Mr.y 2342 2 B CS Mr.x 2342 3 B CS Mr.x 2342 4 D CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x Mr.y 2342 2 B CS Mr.x Mr.y 2342 3 B CS Mr.x 2342 4 D CS Mr.x 2342 Roll No. Name Branch HOD Office_tel 1 A CS Mr.x Mr.y 2342 2 B CS Mr.x Mr.y 2342 3 B CS Mr.x 2342 4 D CS Mr.x Mr.y 2342 Student Table Updation Anomaly Roll No. Name Branch HOD Office_tel 1 A CS Mr.x 2342 2 B CS Mr.x 2342 3 B CS Mr.x 2342 4 D CS Mr.x 2342
  • 9. Roll No. Name BranchID 1 A 1 2 B 1 3 B 1 4 D 1 BranchID HOD Office_tel 1 Mr.x 2342 Student Table Dept Table By dividing Student Table into Student and Department Table we can eliminate all anomalies .
  • 11. “ Every table in database should at least follow the 1st normal form always . To be in 1st normal form a table should follow some rules. 11
  • 12. ▪Each table should contain atomic values 12 Rule 1 colour A Yellow 10,20,22 Blue 30,22,22 Orange 52,22,12
  • 13. ▪A column should contain values of same type 13 Rule 2 colour A Yellow 22 Blue 22 12 Orange
  • 14. ▪Each column should have a unique name Place your screenshot here 14 Rule 3 colour A A Yellow 22 20 Blue 22 15 Orange 12 24 colour A B Yellow 22 20 Blue 22 15 Orange 12 24
  • 16. “ For a table to be in second normal form : ▪It must be in 1st normal form ▪Their should be no partial dependency. 16
  • 17. 17 StudentID Name RegNo Branch Address 1 Akon CSE-18 CSE UP 2 Akon IT-18 IT UK 3 Bkon CSE-18 CSE MP 4 Dkon CSE-18 CSE RAJ STUDENT TABLE SubjectID SubjectName 1 C 2 C++ SUBJECT TABLE SubjectID StudentID
  • 18. 18 ScoreID StudentID SubjectID Marks Teacher 1 1 1 86 Mr.C 2 1 2 45 Mr.C++ 3 3 1 98 Mr.C 4 2 1 78 Mr.C SCORE TABLE Partial Dependency StudentID SubjectID Teacher 1. StudentID,SubjectID  ScoreID,Marks,Teacher 2. SubjectID  Teacher
  • 19. 19 Now the tables are in second Normal Form.... SubjectID SubjectName Teacher 1 C Mr.C 2 C++ Mr.C++ SUBJECT TABLE ScoreID StudentID SubjectID Marks 1 1 1 86 2 1 2 45 3 3 1 98 4 2 1 78 SCORE TABLE StudentID SubjectID SubjectID
  • 21. “ For a table to be in third normal form : ▪It must be in 2st normal form ▪Their should be no Transitive dependency. 21
  • 22. 22 ScoreID StudentID SubjectID Marks Exam_Name Total_Marks 1 123 1 23 PracticalC 30 2 124 1 12 PracticalC 30 StudentID SubjectID Total_Marks Transitive Dependency Exam_Name 1. StudentID,SubjectID  ScoreID,ExamName,Total_marks 2. ExamName Total_Marks
  • 23. 23 ScoreI D StudentI D SubjectID Mark s Teacher ExamID 1 123 1 23 Mr.C 1 2 124 1 12 Mr.C 1 Now the tables are in Third Normal Form.... ExamID Exam_N ame Total_Ma rks 1 Practical C 30 2 Practical C++ 30 Student Table Exam Table
  • 25. “ For a table to be in boyce-codd normal form : ▪It must be in 3rd normal form. ▪For any dependency A B ,A should be a super key. 25
  • 26. 26 StudentID Subject Professor 101 C++ p.Cpp 102 Python p.Python 103 Python p.Python2 104 Java p.java COLLEGE ENROLLMENT TABLE StudentID Subject
  • 27. 27 StudentID Subject Professor COLLEGE ENROLLMENT TABLE StudentID Subject (student_id,subject) Professor Professor Subject Non prime attribute Non prime attribute
  • 28. 28 StudentID Professor StudentID Student Table P ID Professor Subject Student Table P_ID Professor Table Now,our table is in BCNF
  • 29. Thanks! Any Questions ? Presented By •Manohar Bhasin •Rishi Singh •Sandeep kumar Singh