The Relational Model and Normalization

Slides:



Advertisements
Similar presentations
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
Advertisements

Fundamentals, Design, and Implementation, 9/e Chapter 4 The Relational Model and Normalization.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 3-1 COS 346 Day 5.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 3-1 David M. Kroenke Database Processing Chapter 3 Normalization.
Normalization I.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 3-1 COS 346 Day4.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 5 The Relational Model and Normalization.
Chapter 3 The Relational Model and Normalization
(C) 2000, The University of Michigan 1 Database Application Design Handout #3 January 21, 2000.
Lecture 12 Inst: Haya Sammaneh
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
(C) 2000, The University of Michigan 1 Database Application Design Handout #4 January 28, 2000.
Chapter 5 The Relational Model and Normalization David M. Kroenke Database Processing © 2000 Prentice Hall.
Fundamentals, Design, and Implementation, 9/e. Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/2 Copyright.
© 2002 by Prentice Hall 1 Database Design David M. Kroenke Database Concepts 1e Chapter 5 5.
Chapter 4 The Relational Model and Normalization.
Database Management COP4540, SCS, FIU Relation Normalization (Chapter 14)
The Relational Model and Normalization R. Nakatsu.
Normalization. Learners Support Publications 2 Objectives u The purpose of normalization. u The problems associated with redundant data.
1 Pertemuan 23 Normalisasi Matakuliah: >/ > Tahun: > Versi: >
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, Modified by Dr. Mathis 3-1 David M. Kroenke’s Chapter Three: The Relational.
The Relational Model and Normalization The Relational Model Normalization First Through Fifth Normal Forms Domain/Key Normal Form The Synthesis of Relations.
CSE314 Database Systems Basics of Functional Dependencies and Normalization for Relational Databases Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E.
Chapter 8 Foundations of Relational Implementation David M. Kroenke Database Processing © 2000 Prentice Hall.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Data Analysis Improving Database Design. Normalization The process of transforming a data model into a flexible, stable structure. Reduces anomalies Anomaly.
Relational Model & Normalization Relational terminology Anomalies and the need for normalization Normal forms Relation synthesis De-normalization.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Dr. T. Y. Lin | SJSU | CS 157A | Fall 2015 Chapter 3 Database Normalization 1.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 5 The Relational Model and Normalization.
Database Architecture Normalization. Purpose of Normalization A technique for producing a set of relations with desirable properties, given the data requirements.
Logical Database Design and Relational Data Model Muhammad Nasir
Huffman Trucking Fleet Vehicle Maintenance Database DBM380 June 13, 2012 Learning Team B.
5. The Relational Model and Normalization 5.1 Relational Model5.2 Normalization 5.3 1NF to 5NF 5.4 Domain/Key Normalization 5.5 Synthesis of Relation 5.6.
Normal Forms 1NF – A table that qualifies as a relation is in 1NF. (Back)(Back) 2NF – A relation is in 2NF if all of its nonkey attributes are dependent.
Adapted from DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 3-1 Functional Dependencies and Normalization.
4TH NORMAL FORM By: Karen McVay.
Chapter 8: Object-Relational Modeling
A Guide to SQL, Eighth Edition
CSIS 115 Database Design and Applications for Business
Advanced Normalization
The Relational Model and Database Normalization
SEEM3430: Information Systems Analysis and Design
Normalization Karolina muszyńska
Announcements Read 5.1 – 5.5 for today Read 5.6 – 5.7 for Wednesday
A brief summary of database normalization
Chapter 5: Logical Database Design and the Relational Model
Chapter 4 Relational Databases
Advanced Normalization
Database Normalization
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Chapter 9 Designing Databases
Relational Model and ER Model: in a Nutshell
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Database Normalization
Chapter 6 Normalization of Database Tables
Database Processing: David M. Kroenke’s Chapter Three:
Normalization.
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Normalization Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting.
David M. Kroenke and David J
Normalization February 28, 2019 DB:Normalization.
Copyright © 2018, 2015, 20 Pearson Education, Inc. All Rights Reserved Database Concepts Eighth Edition Chapter # 2 The Relational Model.
Sampath Jayarathna Cal Poly Pomona
Sampath Jayarathna Cal Poly Pomona
Chapter 4 The Relational Model and Normalization
Presentation transcript:

The Relational Model and Normalization Database Processing Chapter 5 The Relational Model and Normalization David M. Kroenke © 2000 Prentice Hall

The Relational Model Broad, flexible model Basis for almost all DBMS products E.F. Codd defined well-structured “normal forms” of relations, “normalization” Page 113

Relation Two-dimensional table Rows are tuples Columns are attributes Page 113

Equivalent Relational Terms Page 114 Figure 5-1 © 2000 Prentice Hall

Functional Dependency “relationship between or among attributes” Page 114 Figure 5-2 © 2000 Prentice Hall

Functional Dependency Notation SID  Major ComputerSerialNumber  MemorySize (SID, ClassName)  Grade Page 115

Key “a group of one or more attributes that uniquely identifies a row” Page 116 Figure 5-3 © 2000 Prentice Hall

Combination Key Page 117 Figure 5-4 © 2000 Prentice Hall

Normalization “the process of evaluating and converting a relation to reduce modification anomalies” Page 118

Anomaly “an undesirable consequence of data modification in which two or more different themes are entered (insertion anomaly) in a single row or two or more themes are lost if the row is deleted (deletion anomaly)” Page 118

Normal Forms “classes of relations and techniques for preventing anomalies” DK/NF = Domain Key Normal Form (free of modification anomalies) Page 118

First Normal Form “any table of data that meets the definition of a relation” Figure 5-3 © 2000 Prentice Hall

Second Normal Form “when all of a relation’s nonkey attributes are dependent on all of the key” Figure 5-5 © 2000 Prentice Hall

Third Normal Form “if it is in second normal form and has no transitive dependencies” Figure 5-7 © 2000 Prentice Hall

Boyce-Codd Normal Form “if every determinant is a candidate key” Figure 5-8 © 2000 Prentice Hall

Fourth Normal Form “if in BCNF and has no multi-value dependencies” Figure 5-11 © 2000 Prentice Hall

Fifth Normal Form ? Page 125

Domain Key Normal Form “if every constraint on the relation is a logical consequence of the definition of keys and domains” Page 125

DK/NF Terms Constraint “a rule governing static values of attributes” Key “unique identifier of a tuple” Domain “description of an attribute’s allowed values” Page 126

DK/NF Example Figure 5-13 © 2000 Prentice Hall

DK/NF Example Figure 5-15 © 2000 Prentice Hall

DK/NF Example Figure 5-16 © 2000 Prentice Hall

Summary of Normal Forms Figure 5-18 © 2000 Prentice Hall

A  B relationships A  B and B  A one-to-one A  B but B not  A many-to-one A not  B and B not  A many-to-many Page 131

Summary of Relationships Figure 5-19 © 2000 Prentice Hall

Optimization De-Normalization Controlled Redundancy Page 135