Brian Thoms.  Databases normalization The systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain.

Slides:



Advertisements
Similar presentations
Chapter 5 Normalization of Database Tables
Advertisements

Boyce-Codd normal form (BCNF) Kai Zhu CS157B Professor: Dr. Lee.
Normalisation The theory of Relational Database Design.
Normalization of Database Tables Special adaptation for INFS-3200
Normalization of Database Tables
Chapter 8 Normal Forms Based on Functional Dependencies Deborah Costa Oct 18, 2007.
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.
1 Database Design Theory Which tables to have in a database Normalization.
Normalization of Database Tables
4 Chapter 4 Normalization Hachim Haddouti. 4 Hachim Haddouti, CH4, see also Rob & Coronel 2 In this chapter, you will learn: What normalization is and.
Normalization I.
Normalization of Database Tables
Normalization of Database Tables
Chapter 5 Normalization of Database Tables
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Normalization II. Boyce–Codd Normal Form (BCNF) Based on functional dependencies that take into account all candidate keys in a relation, however BCNF.
Normalization Quiz Tao Li Grant Horntvedt. 1. Which of the following statements is true: a. Normal forms can be derived by inspecting the data in various.
Normalization. Introduction Badly structured tables, that contains redundant data, may suffer from Update anomalies : Insertions Deletions Modification.
Lecture 12 Inst: Haya Sammaneh
Copyright, Harris Corporation & Ophir Frieder, Normal Forms “Why be normal?” - Author unknown Normal.
Normalization. 2 Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification of various types of update anomalies.
NormalizationNormalization Chapter 4. Purpose of Normalization Normalization  A technique for producing a set of relations with desirable properties,
Database Systems: Design, Implementation, and Management Tenth Edition
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Concepts of Database Management, Fifth Edition
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
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 DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation.
Lecture 6 Normalization: Advanced forms. Objectives How inference rules can identify a set of all functional dependencies for a relation. How Inference.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
By Abdul Rashid Ahmad. E.F. Codd proposed three normal forms: The first, second, and third normal forms 1NF, 2NF and 3NF are based on the functional dependencies.
Lecture No 14 Functional Dependencies & Normalization ( III ) Mar 04 th 2011 Database Systems.
Database Design – Lecture 8
Database Principles: Fundamentals of Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables Carlos Coronel, Steven.
Normalization of Database Tables
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
Chapter 4 Normalization of Database Tables. 2 Database Tables and Normalization Table is basic building block in database design Table is basic building.
9/23/2012ISC329 Isabelle Bichindaritz1 Normalization.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
DATA NORMALIZATION CS 260 Database Systems. Overview  Introduction  Anomalies  Functional dependence  Normal forms  1NF  2NF  3NF  BCNF  Denormalization.
Normalization.
Database Systems, 8 th Edition Improving the Design Table structures cleaned up to eliminate initial partial and transitive dependencies Normalization.
11/10/2009GAK1 Normalization. 11/10/2009GAK2 Learning Objectives Definition of normalization and its purpose in database design Types of normal forms.
Normalisation 1NF to 3NF Ashima Wadhwa. In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
Week 4 Lecture Part 1 of 3 Normalization of Database Tables Samuel ConnSamuel Conn, Asst. Professor.
Objectives of Normalization  To create a formal framework for analyzing relation schemas based on their keys and on the functional dependencies among.
ITD1312 Database Principles Chapter 4C: Normalization.
Normal Forms (Part 1) Steven Le ~ CS157B. Normalization is a systematic way of ensuring that a database structure is suitable for general-purpose querying.
Decomposition and Normalization Fan Qi
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
SLIDE 1IS 257 – Fall 2006 Normalization Normalization theory is based on the observation that relations with certain properties are more effective.
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
Normalization.
Chapter 5: Relational Database Design
Chapter 4: Relational Database Design
Database Normalization
Chapter 6 Normalization of Database Tables
Normalization.
Normalization of Database Tables Uploaded by: mysoftbooks.ml
Review of Week 3 Relation Transforming ERD into Relations
Presentation transcript:

Brian Thoms

 Databases normalization The systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain undesirable characteristics. But what does that mean? 2

 ERD Macro view of an organization’s requirements and operations Can be transformed to DB design using iterative process  DB Normalization Micro view of entities (and their attributes) 3

 Reduce unnecessary redundancy since too much redundancy across tables will generate anomalies  But the goal is not to eliminate all redundancy (some redundancy is desirable)  Trade-off: Normalization does not mean better Data becomes spread across a larger number of tables (i.e. more normalization  more joins)  Types: 1NF, 2NF, 3NF, BCNF, 4NF (and, theoretically, higher forms exist 5NF / 6NF) 4

 Why do we normalize? Data can suffer from logical inconsistencies from operations involving data updates, insertions, and deletions (aka data anomalies). 5 Update Anomaly The same information can be expressed on multiple records; therefore updates to the table may result in logical inconsistencies. (e.g.) employee 519 changes his/her address requiring changes across multiple tables/records?

Insertion Anomaly Circumstances in which certain facts cannot be recorded at all. (e.g.) A new faculty member arrives but has not been assigned any courses to teach therefore blanks/null data must be entered? Deletion Anomaly Circumstances when deleting of data representing certain facts requires the deletion of data representing completely different facts. (e.g.) Deleting a course taught for a faculty member could deletes the entire record for that faculty member. 6

 First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)  Boyce-Codd Normal Form (BCNF)  Fourth Normal form (4NF)  (Theoretical) Fifth Normal Form (5NF)  (Theoretical) Sixth Normal Form (6NF) 7

 1NF Table faithfully represents a relation and has no "repeating groups“ (i.e. columns with-in/across that store the same data). 8

 2NF A table is 1NF No non-prime attribute in the table is functionally dependent on a part (proper subset) of a candidate key (i.e. no partial dependencies exist). 9 +

 3NF A table is 2NF Every non-prime attribute is non-transitively dependent on every key of the table DoB is dependent on Winner?

 (Informally) A relational database table is described as "normalized" if it is in 3NF.  Most 3NF tables are free of insertion, update, and deletion anomalies. 11

 BCNF Every non-trivial functional dependency is dependent on a candidate key. BCNF is violated if the table contains more than 1 candidate key. Only in rare cases does a 3NF table not meet the requirements of BCNF 12 (Saver should always be on Court 1)

 4NF Table is in 3NF. No multivalued dependencies exist.  Multivalued dependencies occur when a determinant determines a particular set of values (e.g., employee  degree (BS, MS, Ph.D.)).  Solution: make them into separate tables. 13

 malization malization  form form  al_form al_form  Codd_normal_form Codd_normal_form  l_form l_form 14

15