SlideShare a Scribd company logo
1 of 24
METU Department of Computer Eng Ceng 302 Introduction to DBMS Relational Database Design Algorithms by  Pinar Senkul resources: mostly froom Elmasri, Navathe and other books
Outline ,[object Object],[object Object],[object Object]
DESIGNING A SET OF RELATIONS  ,[object Object],[object Object],[object Object]
Properties of Relational Decompositions ,[object Object],[object Object],[object Object]
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object]
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object]
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of Relational Decompositions ,[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of Relational Decompositions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of Relational Decompositions    Lossless (nonadditive) join test for  n -ary decompositions.  (a) Case 1: Decomposition of EMP_PROJ into EMP_PROJ1 and EMP_LOCS  fails test.  (b) A decomposition of EMP_PROJ that has the lossless join property.
Properties of Relational Decompositions  Lossless (nonadditive) join test for  n -ary decompositions.   (c) Case 2: Decomposition of EMP_PROJ into EMP, PROJECT, and WORKS_ON satisfies test.
Properties of Relational Decompositions  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithms for Relational Database Schema Design  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithms for Relational Database Schema Design  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithms for Relational Database Schema Design  Example: R={ssn,ename,bdate,address,dno,dname,dmgrssn} {ssn}   {ename,bdate,address,dno} {dno }   {dname,dmgrssn} R1 = {ssn,ename,bdate,address,dno} R2 = {dno,dname,dmgrssn}
Algorithms for Relational Database Schema Design  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithms for Relational Database Schema Design  Example: R={student, course, instructor} {student, course}   {instructor} {instructor }   {course} R1 = {student, instructor} R2 = {instructor, course}
Algorithms for Relational Database Schema Design   Issues with null-value joins.  (a) Some EMPLOYEE tuples have null for the join attribute DNUM.
Algorithms for Relational Database Schema Design   Issues with null-value joins.  (b) Result of applying NATURAL JOIN to the EMPLOYEE and DEPARTMENT relations. (c) Result of applying LEFT OUTER JOIN to EMPLOYEE and DEPARTMENT.
Algorithms for Relational Database Schema Design    The “dangling tuple” problem.
Algorithms for Relational Database Schema Design   The “dangling tuple” problem.  (b) The relation EMPLOYEE_2 (includes DNUM attribute with null values).  (c) The relation EMPLOYEE_3 (includes DNUM attribute but does not include tuples for which DNUM has null values).
Algorithms for Relational Database Schema Design ,[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Multivalued dependency
Multivalued dependencyMultivalued dependency
Multivalued dependency
avniS
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
koolkampus
 
5 the relational algebra and calculus
5 the relational algebra and calculus5 the relational algebra and calculus
5 the relational algebra and calculus
Kumar
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 
Functional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databasesFunctional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databases
Jafar Nesargi
 

What's hot (20)

Database normalization
Database normalizationDatabase normalization
Database normalization
 
Multivalued dependency
Multivalued dependencyMultivalued dependency
Multivalued dependency
 
Cs501 fd nf
Cs501 fd nfCs501 fd nf
Cs501 fd nf
 
Functional dependancy
Functional dependancyFunctional dependancy
Functional dependancy
 
Normalization
NormalizationNormalization
Normalization
 
Advance Normalization
Advance NormalizationAdvance Normalization
Advance Normalization
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
 
Relational algebra-and-relational-calculus
Relational algebra-and-relational-calculusRelational algebra-and-relational-calculus
Relational algebra-and-relational-calculus
 
Relational database
Relational  databaseRelational  database
Relational database
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalization
 
Dbms unit-3
Dbms unit-3Dbms unit-3
Dbms unit-3
 
5 the relational algebra and calculus
5 the relational algebra and calculus5 the relational algebra and calculus
5 the relational algebra and calculus
 
Relational Algebra Introduction
Relational Algebra IntroductionRelational Algebra Introduction
Relational Algebra Introduction
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Join dependency
Join dependencyJoin dependency
Join dependency
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Chapter10
Chapter10Chapter10
Chapter10
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
Functional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databasesFunctional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databases
 

Viewers also liked

Close quarters battle (cqb ).ppt
Close quarters battle (cqb ).pptClose quarters battle (cqb ).ppt
Close quarters battle (cqb ).ppt
josecoco1
 

Viewers also liked (6)

Who Says B2B Research is Boring and Emotionless?
Who Says B2B Research is Boring and Emotionless? Who Says B2B Research is Boring and Emotionless?
Who Says B2B Research is Boring and Emotionless?
 
TEGUMENTO
TEGUMENTOTEGUMENTO
TEGUMENTO
 
Epi & Epc
Epi    &   EpcEpi    &   Epc
Epi & Epc
 
Close quarters battle (cqb ).ppt
Close quarters battle (cqb ).pptClose quarters battle (cqb ).ppt
Close quarters battle (cqb ).ppt
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Bài 1: Tổng quan về cơ sở dữ liệu - Giáo trình FPT
Bài 1: Tổng quan về cơ sở dữ liệu - Giáo trình FPTBài 1: Tổng quan về cơ sở dữ liệu - Giáo trình FPT
Bài 1: Tổng quan về cơ sở dữ liệu - Giáo trình FPT
 

Similar to Normalization

RDBMS ER2 Relational
RDBMS ER2 RelationalRDBMS ER2 Relational
RDBMS ER2 Relational
Sarmad Ali
 

Similar to Normalization (20)

L8 design1
L8 design1L8 design1
L8 design1
 
Function Dependencies and Normalization
 Function Dependencies and Normalization Function Dependencies and Normalization
Function Dependencies and Normalization
 
Normalization
NormalizationNormalization
Normalization
 
RDBMS ER2 Relational
RDBMS ER2 RelationalRDBMS ER2 Relational
RDBMS ER2 Relational
 
Normalization1
Normalization1Normalization1
Normalization1
 
Ch2
Ch2Ch2
Ch2
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management System
 
Introduction to database-Normalisation
Introduction to database-NormalisationIntroduction to database-Normalisation
Introduction to database-Normalisation
 
Class XI CH 2 (relations and functions)
Class XI CH 2 (relations and functions)Class XI CH 2 (relations and functions)
Class XI CH 2 (relations and functions)
 
Module 2 - part i
Module   2 - part iModule   2 - part i
Module 2 - part i
 
L9 design2
L9 design2L9 design2
L9 design2
 
Chapter6
Chapter6Chapter6
Chapter6
 
Chapter7
Chapter7Chapter7
Chapter7
 
Relations and function class xii copy
Relations and function class xii   copyRelations and function class xii   copy
Relations and function class xii copy
 
Cs501 rel algebra
Cs501 rel algebraCs501 rel algebra
Cs501 rel algebra
 
test
testtest
test
 
structureformal1.ppt
structureformal1.pptstructureformal1.ppt
structureformal1.ppt
 
354 ch6
354 ch6354 ch6
354 ch6
 
ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...
 
Relation And Function.pptx
Relation And Function.pptxRelation And Function.pptx
Relation And Function.pptx
 

More from avniS

Transaction unit 1 topic 4
Transaction unit 1 topic 4Transaction unit 1 topic 4
Transaction unit 1 topic 4
avniS
 
Transaction unit1 topic 2
Transaction unit1 topic 2Transaction unit1 topic 2
Transaction unit1 topic 2
avniS
 
Sequences
SequencesSequences
Sequences
avniS
 
Locks with updt nowait
Locks with updt nowaitLocks with updt nowait
Locks with updt nowait
avniS
 
Locking unit 1 topic 3
Locking unit 1 topic 3Locking unit 1 topic 3
Locking unit 1 topic 3
avniS
 
3 phases in transactions 3 units
3 phases in transactions 3 units3 phases in transactions 3 units
3 phases in transactions 3 units
avniS
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluation
avniS
 
Changing trends in sw development
Changing trends in sw developmentChanging trends in sw development
Changing trends in sw development
avniS
 

More from avniS (8)

Transaction unit 1 topic 4
Transaction unit 1 topic 4Transaction unit 1 topic 4
Transaction unit 1 topic 4
 
Transaction unit1 topic 2
Transaction unit1 topic 2Transaction unit1 topic 2
Transaction unit1 topic 2
 
Sequences
SequencesSequences
Sequences
 
Locks with updt nowait
Locks with updt nowaitLocks with updt nowait
Locks with updt nowait
 
Locking unit 1 topic 3
Locking unit 1 topic 3Locking unit 1 topic 3
Locking unit 1 topic 3
 
3 phases in transactions 3 units
3 phases in transactions 3 units3 phases in transactions 3 units
3 phases in transactions 3 units
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluation
 
Changing trends in sw development
Changing trends in sw developmentChanging trends in sw development
Changing trends in sw development
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Normalization

  • 1. METU Department of Computer Eng Ceng 302 Introduction to DBMS Relational Database Design Algorithms by Pinar Senkul resources: mostly froom Elmasri, Navathe and other books
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. Properties of Relational Decompositions Lossless (nonadditive) join test for n -ary decompositions. (a) Case 1: Decomposition of EMP_PROJ into EMP_PROJ1 and EMP_LOCS fails test. (b) A decomposition of EMP_PROJ that has the lossless join property.
  • 13. Properties of Relational Decompositions Lossless (nonadditive) join test for n -ary decompositions. (c) Case 2: Decomposition of EMP_PROJ into EMP, PROJECT, and WORKS_ON satisfies test.
  • 14.
  • 15.
  • 16.
  • 17. Algorithms for Relational Database Schema Design Example: R={ssn,ename,bdate,address,dno,dname,dmgrssn} {ssn}  {ename,bdate,address,dno} {dno }  {dname,dmgrssn} R1 = {ssn,ename,bdate,address,dno} R2 = {dno,dname,dmgrssn}
  • 18.
  • 19. Algorithms for Relational Database Schema Design Example: R={student, course, instructor} {student, course}  {instructor} {instructor }  {course} R1 = {student, instructor} R2 = {instructor, course}
  • 20. Algorithms for Relational Database Schema Design Issues with null-value joins. (a) Some EMPLOYEE tuples have null for the join attribute DNUM.
  • 21. Algorithms for Relational Database Schema Design Issues with null-value joins. (b) Result of applying NATURAL JOIN to the EMPLOYEE and DEPARTMENT relations. (c) Result of applying LEFT OUTER JOIN to EMPLOYEE and DEPARTMENT.
  • 22. Algorithms for Relational Database Schema Design The “dangling tuple” problem.
  • 23. Algorithms for Relational Database Schema Design The “dangling tuple” problem. (b) The relation EMPLOYEE_2 (includes DNUM attribute with null values). (c) The relation EMPLOYEE_3 (includes DNUM attribute but does not include tuples for which DNUM has null values).
  • 24.