SlideShare une entreprise Scribd logo
1  sur  29
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

Contenu connexe

Similaire à Normalization

dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweqdbms-unit-_part-1.pptxeqweqweqweqweqweqweqweq
dbms-unit-_part-1.pptxeqweqweqweqweqweqweqweqwrushabhsirsat
 
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.pptxistralthvi
 
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 exampleSABITHARASSISTANTPRO
 
S1 Data Processing C.A 1
S1 Data Processing C.A 1S1 Data Processing C.A 1
S1 Data Processing C.A 1Ejiro Ndifereke
 
Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationDan D'Urso
 

Similaire à 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
 

Dernier

Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfnehabiju2046
 
Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionPriyansha Singh
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 sciencefloriejanemacaya1
 
Types of different blotting techniques.pptx
Types of different blotting techniques.pptxTypes of different blotting techniques.pptx
Types of different blotting techniques.pptxkhadijarafiq2012
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 

Dernier (20)

Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdf
 
Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorption
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 science
 
Types of different blotting techniques.pptx
Types of different blotting techniques.pptxTypes of different blotting techniques.pptx
Types of different blotting techniques.pptx
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 

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