SlideShare ist ein Scribd-Unternehmen logo
1 von 74
Downloaden Sie, um offline zu lesen
Institute of Southern Punjab,
Multan
Mr. Muhammad Nouman Farooq
BSC-H (Computer Science)
MS (Telecomm. and Networks)
Honors:
Magna Cumm Laude Honors Degree
Gold Medalist!
Blog Url: noumanfarooqatisp.wordpress.com
E-Mail: noman.iefr@hotmail.com
Advance Database Systems
Lecture# 6
Advanced Normalization
Lecture 6: Advanced Normalization
 Normalization (Brief Overview)
 Functional Dependencies and Keys
 1st Normal Form
 2nd Normal Form
 3rd Normal Form
 3.5 Normal Form (Boyce Codd Normal Form-BCNF)
 4th Normal Form
 5th Normal Form (Project-Join Normal Form-PJNF)
 Domain Key Normal Form (DKNF)
 6th Normal Form
 Class Activity
3
4
 Normalization (Brief Overview)
Normalization (Brief Overview)
 The main goal of Database Normalization is to restructure the
logical data model of a database to:
1. Eliminate Redundancy.
2. Organize Data Efficiently.
3. Reduce the possibility of Data Anomalies/Irregularities.
5
Continued…
 Data anomalies are inconsistencies in the data stored in a database
as a result of an operation such as update, insertion, and deletion.
 Such inconsistencies may arise when have a particular record stored
in multiple locations and not all of the copies are updated.
 We can prevent such anomalies by implementing 7 different level of
normalization called Normal Forms (NF)
 We’ll only look at the first Three.
6
Continued…
 Database Normalization was first proposed by Edgar F. Codd.
 Codd defined the first three Normal Forms, which we’ll look into,
of the 7 known Normal Forms.
 In order to do normalization we must know what the requirements
are for each of the three Normal Forms that we’ll go over.
 One of the key requirements to remember is that Normal Forms
are progressive. That is, in order to achieve 3rd NF we must have
2nd NF and in order to have 2nd NF we must have 1st NF.
7
Levels of Normalization
8
 Levels of normalization based on the amount of redundancy
in the database.
 Various levels of normalization are:
 First Normal Form (1NF)
 Second Normal Form (2NF)
 Third Normal Form (3NF)
 Boyce-Codd Normal Form (BCNF)
 Fourth Normal Form (4NF)
 Fifth Normal Form (5NF)
 Domain Key Normal Form (DKNF)
Redundancy
NumberofTables
Data Anomalies
1. Insertion Anomaly:
Cannot make a record of Jone’s address because he is not
taking any classes.
10
Continued…
2. Update Anomaly:
Clearly, Name and Address are redundant (larger relation and
we have to update 3 rows to update the Address)
11
Continued…
3. Delete Anomaly:
Cannot delete Jones’ enrolment without loosing his address
as well
12
 Functional Dependencies and Keys
13
Functional Dependencies and Keys
14
15
16
 1st Normal Form
17
1st Normal Form
 The requirements to satisfy the 1st NF are:
1) Each table has a Primary Key: minimal set of attributes which
can uniquely identify a record
2) The values in each column of a table are Atomic (No multi-
value attributes allowed eg. stdCellNo; stdEmailAddress)
3) There are no repeating groups: two columns do not store
similar information in the same table.
18
 2nd Normal Form
21
2nd Normal Form
 The requirements to satisfy the 2nd NF:
 All requirements for 1st NF must be met
 Any partial functional dependencies have been removed (i.e., non-keys
are identified by the Whole Primary Key).
 bookISBN --> bookTitle, bookFirstAuthorName, bookPublisher.
In the given above example; The title of a book, the name of the first
author, and the publisher are functionally dependent on the book's
International Standard Book Number (ISBN). In other words all listed
attributes are identified uniquely by the whole Primary Key which is
“bookISBN” and this relation/file/table/ENTITY is in 2nd Normal Form.
22
23
24
26
27
 3rd Normal Form
28
Continued…
 We have seen how Database Normalization can decrease redundancy,
increase efficiency and reduce anomalies by implementing three of
seven different levels of normalization called Normal Forms.
 The first Three Normal Forms (3-NF) are usually sufficient for small to
medium size applications.
32
 3.5 Normal Form (Boyce Codd Normal
Form-BCNF)
33
35
37
38
 4th Normal Form
42
 5th Normal Form (Project-Join Normal
Form-PJNF)
47
 In Natural Join operation; After Joining tables; Repeated Records in rows
are Eliminated
 In Additive Lossy Join; spurious RECORD/TUPPLE/INSTANCE created
after Natural Joining on two or more than two tables (It can be called as
Information/record retrieve that was missing in original table)
 In Non-Additive Lossless Join; We are not losing any Information and
not creating any SPURIOUS/FALSE RECORDS/INSTANCES/DATA in ROWS of
Relation/Table/File/Entity
 Additive Lossy Join means EXTRA
RECORD/TUPPLE/INSTANCE created
after Natural Joining on two or more
than two tables
 In Natural Join; After Joining
multiple tables; Repeated values
Eliminated as shown in figures
Projection of R1 Natural Join Projection of R2 Natural Join Projection of R3 ….. Natural Join Projection of Rn = R
R = R1 (R) ⋈ R2 (R) ⋈ …… ⋈ Rn(R)
Conditions that Satisfies a Relation R is in 5-NF
 A relation R is in 5-NF if and only if:
1) R must be in 4-NF.
2) If Join Dependency (JD) not exists.
a) If Non-Additive Lossless Join exists under one condition that is;
decomposition of main table/relation into smaller relations that must
eliminate redundant records with out losing original information and with
out creating false/spurious records.
b) If Additive Lossy Join exists than it will also be in 5-NF under one
condition that is; gaining meaningful information that was missing in
original relation (not called as spurious record in certain situation)
59
 Domain Key Normal Form (DKNF)
60
 6th Normal Form
64
 Class Activity
69
Class Activity: The Following Given ERD (Crow’s
Foot Style) is in which Normal Form?
70
Recommended Readings
Chapter 5 from:
 Modern Database Management-8th Edition by Jeffrey
A. Hoffer, Mary B. Presscott & Fred R. McFadden
(Page No. 211-219)
Advanced Normal Forms from:
 Modern Database Management-8th Edition by Jeffrey
A. Hoffer, Mary B. Presscott & Fred R. McFadden
(Page No. 605-610)
Recommended Readings
Chapter 14 from:
 Database Systems-A Practical Approach to Design,
Implementation and Management by Thomas Connolly
and Carolyn Begg, 4th Edition (Page No. 481-485)
Chapter 4 from:
 Database Systems-A Pragmatic Approach by Elvis C.
Foster, Shirpad V. Godbole (Page 72-79)
Summary of Lecture
73
Lecture 6➦
 Normalization (Brief Overview)
 Functional Dependencies and Keys
 1st Normal Form
 2nd Normal Form
 3rd Normal Form
 3.5 Normal Form (Boyce Codd Normal Form-BCNF)
 4th Normal Form
 5th Normal Form (Project-Join Normal Form-PJNF)
 6th Normal Form
 Class Activity
 END OF LECTURE 6
74

Weitere ähnliche Inhalte

Was ist angesagt?

File Organization
File OrganizationFile Organization
File Organization
Manyi Man
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
daxesh chauhan
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 

Was ist angesagt? (20)

Normalization
NormalizationNormalization
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
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)
 
Dbms normalization
Dbms normalizationDbms normalization
Dbms normalization
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
File Organization
File OrganizationFile Organization
File Organization
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Normalization
NormalizationNormalization
Normalization
 
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
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
File organization
File organizationFile organization
File organization
 
Red black tree
Red black treeRed black tree
Red black tree
 
Introduction to Data Structure & algorithm
Introduction to Data Structure & algorithmIntroduction to Data Structure & algorithm
Introduction to Data Structure & algorithm
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Data structure
Data structureData structure
Data structure
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
 

Ähnlich wie Advanced Normalization

b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
Dimara Hakim
 
Dependencies in various topics like normalisation and its types
Dependencies in various topics like normalisation and its typesDependencies in various topics like normalisation and its types
Dependencies in various topics like normalisation and its types
nsrChowdary1
 

Ähnlich wie Advanced Normalization (20)

Database Normalization.pptx
Database Normalization.pptxDatabase Normalization.pptx
Database Normalization.pptx
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016
 
Database Normalization.docx
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
 
Rdbms xp 03
Rdbms xp 03Rdbms xp 03
Rdbms xp 03
 
Chapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptxChapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptx
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
 
1-161103092724 (1).pdf
1-161103092724 (1).pdf1-161103092724 (1).pdf
1-161103092724 (1).pdf
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Database.ppt
Database.pptDatabase.ppt
Database.ppt
 
Chapter 5 - Normalization of Database Tables.pdf
Chapter 5 - Normalization of Database Tables.pdfChapter 5 - Normalization of Database Tables.pdf
Chapter 5 - Normalization of Database Tables.pdf
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systems
 
Dependencies in various topics like normalisation and its types
Dependencies in various topics like normalisation and its typesDependencies in various topics like normalisation and its types
Dependencies in various topics like normalisation and its types
 
Dbms 4NF & 5NF
Dbms 4NF & 5NFDbms 4NF & 5NF
Dbms 4NF & 5NF
 
Year 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st TermYear 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st Term
 
Normalization
NormalizationNormalization
Normalization
 
Data normailazation
Data normailazationData normailazation
Data normailazation
 
Master of Computer Application (MCA) – Semester 4 MC0077
Master of Computer Application (MCA) – Semester 4  MC0077Master of Computer Application (MCA) – Semester 4  MC0077
Master of Computer Application (MCA) – Semester 4 MC0077
 
Exception & Database
Exception & DatabaseException & Database
Exception & Database
 

Mehr von Abdullah Khosa

Chanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdfChanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdf
Abdullah Khosa
 

Mehr von Abdullah Khosa (20)

Chanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdfChanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdf
 
Mycin presentation
Mycin presentationMycin presentation
Mycin presentation
 
Policy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise ArchitecturePolicy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise Architecture
 
Face to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCIFace to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCI
 
STRATEGIC PAY PLANS
STRATEGIC PAY PLANSSTRATEGIC PAY PLANS
STRATEGIC PAY PLANS
 
AI services in google
AI services in googleAI services in google
AI services in google
 
Cloud Artificial Intelligence services
Cloud Artificial Intelligence servicesCloud Artificial Intelligence services
Cloud Artificial Intelligence services
 
Digital centralization
Digital centralizationDigital centralization
Digital centralization
 
Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)
 
The 5th generation (5G)
The 5th generation (5G)The 5th generation (5G)
The 5th generation (5G)
 
Report of database of list of Pakistan international cricket stadiums
Report of database of list of Pakistan international cricket stadiumsReport of database of list of Pakistan international cricket stadiums
Report of database of list of Pakistan international cricket stadiums
 
Database of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiumsDatabase of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiums
 
Attitude and behavior
Attitude and behaviorAttitude and behavior
Attitude and behavior
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Benefits of Search engine optimization
Benefits of Search engine optimizationBenefits of Search engine optimization
Benefits of Search engine optimization
 
Physical Database Design & Performance
Physical Database Design & PerformancePhysical Database Design & Performance
Physical Database Design & Performance
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
Advance database system(part 8)
Advance database system(part 8)Advance database system(part 8)
Advance database system(part 8)
 
Advance database system(part 7)
Advance database system(part 7)Advance database system(part 7)
Advance database system(part 7)
 
Advance database system(part 6)
Advance database system(part 6)Advance database system(part 6)
Advance database system(part 6)
 

Kürzlich hochgeladen

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Kürzlich hochgeladen (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Advanced Normalization

  • 1. Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com E-Mail: noman.iefr@hotmail.com
  • 2. Advance Database Systems Lecture# 6 Advanced Normalization
  • 3. Lecture 6: Advanced Normalization  Normalization (Brief Overview)  Functional Dependencies and Keys  1st Normal Form  2nd Normal Form  3rd Normal Form  3.5 Normal Form (Boyce Codd Normal Form-BCNF)  4th Normal Form  5th Normal Form (Project-Join Normal Form-PJNF)  Domain Key Normal Form (DKNF)  6th Normal Form  Class Activity 3
  • 5. Normalization (Brief Overview)  The main goal of Database Normalization is to restructure the logical data model of a database to: 1. Eliminate Redundancy. 2. Organize Data Efficiently. 3. Reduce the possibility of Data Anomalies/Irregularities. 5
  • 6. Continued…  Data anomalies are inconsistencies in the data stored in a database as a result of an operation such as update, insertion, and deletion.  Such inconsistencies may arise when have a particular record stored in multiple locations and not all of the copies are updated.  We can prevent such anomalies by implementing 7 different level of normalization called Normal Forms (NF)  We’ll only look at the first Three. 6
  • 7. Continued…  Database Normalization was first proposed by Edgar F. Codd.  Codd defined the first three Normal Forms, which we’ll look into, of the 7 known Normal Forms.  In order to do normalization we must know what the requirements are for each of the three Normal Forms that we’ll go over.  One of the key requirements to remember is that Normal Forms are progressive. That is, in order to achieve 3rd NF we must have 2nd NF and in order to have 2nd NF we must have 1st NF. 7
  • 8. Levels of Normalization 8  Levels of normalization based on the amount of redundancy in the database.  Various levels of normalization are:  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)  Boyce-Codd Normal Form (BCNF)  Fourth Normal Form (4NF)  Fifth Normal Form (5NF)  Domain Key Normal Form (DKNF) Redundancy NumberofTables
  • 9.
  • 10. Data Anomalies 1. Insertion Anomaly: Cannot make a record of Jone’s address because he is not taking any classes. 10
  • 11. Continued… 2. Update Anomaly: Clearly, Name and Address are redundant (larger relation and we have to update 3 rows to update the Address) 11
  • 12. Continued… 3. Delete Anomaly: Cannot delete Jones’ enrolment without loosing his address as well 12
  • 15. 15
  • 16. 16
  • 17.  1st Normal Form 17
  • 18. 1st Normal Form  The requirements to satisfy the 1st NF are: 1) Each table has a Primary Key: minimal set of attributes which can uniquely identify a record 2) The values in each column of a table are Atomic (No multi- value attributes allowed eg. stdCellNo; stdEmailAddress) 3) There are no repeating groups: two columns do not store similar information in the same table. 18
  • 19.
  • 20.
  • 21.  2nd Normal Form 21
  • 22. 2nd Normal Form  The requirements to satisfy the 2nd NF:  All requirements for 1st NF must be met  Any partial functional dependencies have been removed (i.e., non-keys are identified by the Whole Primary Key).  bookISBN --> bookTitle, bookFirstAuthorName, bookPublisher. In the given above example; The title of a book, the name of the first author, and the publisher are functionally dependent on the book's International Standard Book Number (ISBN). In other words all listed attributes are identified uniquely by the whole Primary Key which is “bookISBN” and this relation/file/table/ENTITY is in 2nd Normal Form. 22
  • 23. 23
  • 24. 24
  • 25.
  • 26. 26
  • 27. 27
  • 28.  3rd Normal Form 28
  • 29.
  • 30.
  • 31.
  • 32. Continued…  We have seen how Database Normalization can decrease redundancy, increase efficiency and reduce anomalies by implementing three of seven different levels of normalization called Normal Forms.  The first Three Normal Forms (3-NF) are usually sufficient for small to medium size applications. 32
  • 33.  3.5 Normal Form (Boyce Codd Normal Form-BCNF) 33
  • 34.
  • 35. 35
  • 36.
  • 37. 37
  • 38. 38
  • 39.
  • 40.
  • 41.
  • 42.  4th Normal Form 42
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.  5th Normal Form (Project-Join Normal Form-PJNF) 47
  • 48.
  • 49.
  • 50.  In Natural Join operation; After Joining tables; Repeated Records in rows are Eliminated  In Additive Lossy Join; spurious RECORD/TUPPLE/INSTANCE created after Natural Joining on two or more than two tables (It can be called as Information/record retrieve that was missing in original table)  In Non-Additive Lossless Join; We are not losing any Information and not creating any SPURIOUS/FALSE RECORDS/INSTANCES/DATA in ROWS of Relation/Table/File/Entity
  • 51.  Additive Lossy Join means EXTRA RECORD/TUPPLE/INSTANCE created after Natural Joining on two or more than two tables  In Natural Join; After Joining multiple tables; Repeated values Eliminated as shown in figures
  • 52. Projection of R1 Natural Join Projection of R2 Natural Join Projection of R3 ….. Natural Join Projection of Rn = R R = R1 (R) ⋈ R2 (R) ⋈ …… ⋈ Rn(R)
  • 53.
  • 54. Conditions that Satisfies a Relation R is in 5-NF  A relation R is in 5-NF if and only if: 1) R must be in 4-NF. 2) If Join Dependency (JD) not exists. a) If Non-Additive Lossless Join exists under one condition that is; decomposition of main table/relation into smaller relations that must eliminate redundant records with out losing original information and with out creating false/spurious records. b) If Additive Lossy Join exists than it will also be in 5-NF under one condition that is; gaining meaningful information that was missing in original relation (not called as spurious record in certain situation)
  • 55.
  • 56.
  • 57.
  • 58.
  • 59. 59
  • 60.  Domain Key Normal Form (DKNF) 60
  • 61.
  • 62.
  • 63.
  • 64.  6th Normal Form 64
  • 65.
  • 66.
  • 67.
  • 68.
  • 70. Class Activity: The Following Given ERD (Crow’s Foot Style) is in which Normal Form? 70
  • 71. Recommended Readings Chapter 5 from:  Modern Database Management-8th Edition by Jeffrey A. Hoffer, Mary B. Presscott & Fred R. McFadden (Page No. 211-219) Advanced Normal Forms from:  Modern Database Management-8th Edition by Jeffrey A. Hoffer, Mary B. Presscott & Fred R. McFadden (Page No. 605-610)
  • 72. Recommended Readings Chapter 14 from:  Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn Begg, 4th Edition (Page No. 481-485) Chapter 4 from:  Database Systems-A Pragmatic Approach by Elvis C. Foster, Shirpad V. Godbole (Page 72-79)
  • 73. Summary of Lecture 73 Lecture 6➦  Normalization (Brief Overview)  Functional Dependencies and Keys  1st Normal Form  2nd Normal Form  3rd Normal Form  3.5 Normal Form (Boyce Codd Normal Form-BCNF)  4th Normal Form  5th Normal Form (Project-Join Normal Form-PJNF)  6th Normal Form  Class Activity
  • 74.  END OF LECTURE 6 74