Higher Forms of Normalization

Slides:



Advertisements
Similar presentations
Chapter 3 Notes. 3.1 Functional Dependencies A functional dependency is a statement that – two tuples of a relation that agree on some particular set.
Advertisements

Relational Normalization Theory. Limitations of E-R Designs Provides a set of guidelines, does not result in a unique database schema Does not provide.
Nov 11, 2003Murali Mani Normalization B term 2004: lecture 7, 8, 9.
1 Multi-valued Dependencies. 2 Multivalued Dependencies There are database schemas in BCNF that do not seem to be sufficiently normalized. Consider a.
Department of Computer Science and Engineering, HKUST Slide 1 7. Relational Database Design.
Normalization II. Boyce–Codd Normal Form (BCNF) Based on functional dependencies that take into account all candidate keys in a relation, however BCNF.
Introduction to Schema Refinement
Copyright © Curt Hill Schema Refinement III 4 th NF and 5 th NF.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Normalization for Relational Databases.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide DESIGNING A SET OF RELATIONS (2) Goals: Lossless join property (a must). Dependency.
Functional Dependencies and Normalization for Relational Databases
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Chapter 8 Relational Database Design. 2 Relational Database Design: Goals n Reduce data redundancy (undesirable replication of data values) n Minimize.
Relational Data Model, Review Relation Tuple Attribute Domains Candidate key, primary key Key attribute, non-key attribute.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Chapter 7: Relational Database Design. ©Silberschatz, Korth and Sudarshan7.2Database System Concepts.
4NF & MULTIVALUED DEPENDENCY By Kristina Miguel. Review  Superkey – a set of attributes which will uniquely identify each tuple in a relation  Candidate.
1 CS122A: Introduction to Data Management Lecture #13: Relational DB Design Theory (II) Instructor: Chen Li.
COP 6726: New Directions in Database Systems
Advanced Normalization
Chapter 15 Relational Design Algorithms and Further Dependencies
Schedule Today: Next After that Normal Forms. Section 3.6.
Gergely Lukács Pázmány Péter Catholic University
COP4710 Database Systems Relational Design.
Schema Refinement and Normal Forms
CS411 Database Systems 08: Midterm Review Kazuhiro Minami 1.
Module 5: Overview of Database Design -- Normalization
Normalization First Normal Form (1NF) Boyce-Codd Normal Form (BCNF)
Normal Forms.
Database Design Dr. M.E. Fayad, Professor
Relational Database Design by Dr. S. Sridhar, Ph. D
Chapter 8: Relational Database Design
3.1 Functional Dependencies
Handout 4 Functional Dependencies
Advanced Normalization
Normalization Introduction & 1NF Presented by: Dr. Samir Tartir
Normalization Refine data To attain a good DB design
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
11/12/2018.
Relational Design Theory
Fourth normal form: 4NF.
Functional Dependencies and Normalization
Schema Refinement and Normalization
CPSC-310 Database Systems
Module 5: Overview of Normalization
Normalization Murali Mani.
Normalization Boyce-Codd Normal Form Presented by: Dr. Samir Tartir
Functional Dependencies and Normalization
Review  Only two chapters (6 & 7) Normalization Theory Triggers.
Multivalued Dependencies & Fourth Normal Form (4NF)
Mulitvalued Dependencies
Database solutions The process of normalization Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms:
Functional Dependencies and Normalization
Sridhar Narayan Normalization Sridhar Narayan
Multivalued Dependencies & Fourth Normal Form
Multivalued Dependencies & Fourth Normal Form
Relational Design Theory
Normalization Part II cs3431.
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Decomposition and Higher Forms of Normalization
Instructor: Mohamed Eltabakh
Schema Refinement and Normal Forms
Schema Refinement and Normalization
Instructor: Mohamed Eltabakh
Chapter Outline 1 Informal Design Guidelines for Relational Databases
Join Dependencies and Fifth Normal Form
Multivalued Dependencies
Database Design Dr. M.E. Fayad, Professor
Chapter 7a: Overview of Database Design -- Normalization
Functional Dependencies and Normalization
Presentation transcript:

Higher Forms of Normalization Chapter 13.1-13.3 (skim) 11/6/97

"Lossless" Joins The main idea: if you decompose a relation schema, then join the parts of an instance via a natural join, you might get more rows than you started with, i.e., spurious tuples This is bad! Called a "lossy join". Goal: decompositions which produce only "lossless" joins "non-additive" join is more descriptive 11/6/97

Preserving FDs What if, when a relation is decomposed, the X of an XY ends up only in one of the new relations and the Y ends up only in another? Such a decomposition is not dependency-preserving. Goal: Always have FD-preserving decompositions 11/6/97

Fact of life... Finding a decomposition which is both lossless and dependency-preserving is not always possible. 11/6/97

Multivalued Dependencies (MVDs) XY means that given X, there is a unique set of possible Y values (which do not depend on other attributes of the relation) Classic example: PARENTNAMECHILDNAME An FD is also a MVD MVD problems arise if there are two independent 1:N relationships in a relation. 11/6/97

Fourth Normal Form A relation R is in 4NF if for every nontrivial XY, X is a superkey of R. Decomposition into 4NF: If there is a non-trivial XY, form one relation with only X and Y, and another with R-Y. This will be lossless, but not necessarily FD-preserving. Achieving 4NF is a trade-off 11/6/97

Fifth Normal Form Sometimes a relation cannot be losslessly decomposed into two relations, but can be into three or more. 5NF captures the idea that a relation scheme must have some particular lossless decomposition ("join dependency"). Finding actual 5NF cases is difficult. 11/6/97

Normalization Summary 1NF: usually part of the woodwork even so, know how to decompose 2NF: usually skipped but lots of defs. that make great exam Q's! 3NF: a biggie Always aim for this BCNF and 4NF: tradeoffs start here in re: d-preserving and losslessness 5NF: You can say you've heard of it... 11/6/97

Caveat Normalization is not the be-all and end-all of DB design Example: suppose attributes A and B are always used together, but normalization theory says they should be in different tables. Normalization might produce unacceptable performance loss (extra disk reads) 11/10/97