Normalization Transparencies 1. ©Pearson Education 2009 Objectives How the technique of normalization is used in database design. How tables that contain.

Slides:



Advertisements
Similar presentations
© Pearson Education Limited, Chapter 8 Normalization Transparencies.
Advertisements

The Relational Model System Development Life Cycle Normalisation
1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
Normalization I.
Chapter 5 Normalization Transparencies © Pearson Education Limited 1995, 2005.
1 Minggu 10, Pertemuan 19 Normalization (cont.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Introduction to Schema Refinement. Different problems may arise when converting a relation into standard form They are Data redundancy Update Anomalies.
Normalization. Introduction Badly structured tables, that contains redundant data, may suffer from Update anomalies : Insertions Deletions Modification.
FUNCTIONAL DEPENDENCIES
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
Lecture 12 Inst: Haya Sammaneh
Chapter 6 Normalization 正規化. 6-2 In This Chapter You Will Learn:  更動異常  How tables that contain redundant data can suffer from update anomalies ( 更動異常.
Avoiding Database Anomalies
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,
Module Title? DBMS Normalization. Module Title? DBMS Normalization  Normalization is the process of removing redundant data from tables in order to improve.
Chapter 13 Normalization Transparencies. 2 Last Class u Access Lab.
Concepts of Database Management, Fifth Edition
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: >
Lecture 6 Normalization: Advanced forms. Objectives How inference rules can identify a set of all functional dependencies for a relation. How Inference.
Normalization. We will take a look at –First Normal Form –Second Normal Form –Third Normal Form There are also –Boyce-Codd, Fourth and Fifth normal forms.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Normalization Transparencies
CSC271 Database Systems Lecture # 28.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
Chapter 13 Normalization Transparencies. 2 Chapter 13 - Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification.
Chapter 13 Normalization © Pearson Education Limited 1995, 2005.
Lecture 5 Normalization. Objectives The purpose of normalization. How normalization can be used when designing a relational database. The potential problems.
Chapter 13 Normalization Transparencies Last Updated: 08 th May 2011 By M. Arief
Chapter 10 Normalization Pearson Education © 2009.
Chapter 13 Normalization Transparencies. 2 Chapter 13 - Objectives u How to undertake process of normalization. u How to identify most commonly used normal.
Lecture Nine: Normalization
Dr. Mohamed Osman Hegaz1 Logical data base design (2) Normalization.
© Pearson Education Limited, Normalization Bayu Adhi Tama, M.T.I. Faculty of Computer Science University of Sriwijaya.
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,
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.
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
ITD1312 Database Principles Chapter 4C: Normalization.
Chapter 7 Normalization Chapter 14 & 15 in Textbook.
Database Architecture Normalization. Purpose of Normalization A technique for producing a set of relations with desirable properties, given the data requirements.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
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.
Chapter 8 Relational Database Design Topic 1: Normalization Chuan Li 1 © Pearson Education Limited 1995, 2005.
Normalization.
Normalization DBMS.
A brief summary of database normalization
Functional Dependencies
Chapter 14 Normalization
Database Normalization
Chapter 14 & Chapter 15 Normalization Pearson Education © 2009.
Chapter 14 Normalization – Part I Pearson Education © 2009.
Normalization – Part II
Normalization Dale-Marie Wilson, Ph.D..
Chapter 14 Normalization.
Minggu 9, Pertemuan 18 Normalization
Chapter 14 Normalization.
Normalization February 28, 2019 DB:Normalization.
國立臺北科技大學 課程:資料庫系統 2015 fall Chapter 14 Normalization.
Chapter 14 Normalization Pearson Education © 2009.
Presentation transcript:

Normalization Transparencies 1

©Pearson Education 2009 Objectives How the technique of normalization is used in database design. How tables that contain redundant data can suffer from update anomalies, which can introduce inconsistencies into a database. The rules associated with the most commonly used normal forms, namely first (1NF), second (2NF), and third (3NF). 2

©Pearson Education 2009 Objectives How tables that break the rules of 1NF, 2NF, or 3NF are likely to contain redundant data and suffer from update anomalies. How to correct errors in tables that break the rules of 1NF, 2NF, or 3NF to remove the presence of redundant data. 3

©Pearson Education 2009 Normalization A technique for producing a set of tables with minimal redundancy that support the data requirements of an organization. 4

©Pearson Education 2009 Data redundancy and update anomalies Major aim of relational database design is to group columns into tables to minimize data redundancy and reduce file storage space required by implemented base tables. Problems associated with data redundancy are illustrated by comparing the Staff and Branch tables with the StaffBranch table. 5

©Pearson Education 2009 Staff and DistributionCenter tables with StaffDistributionCenter table 6

©Pearson Education 2009 Data redundancy and update anomalies StaffDistributionCenter table has redundant data; the details of a distribution center are repeated for every member of staff. In contrast, the details of each distribution center appears only once for each centre in the DistributionCenter table and only the distribution center number (dCenterNo) is repeated in the Staff table, to represent where each member of staff is located. 7

©Pearson Education 2009 Data redundancy and update anomalies 8 Tables that contain redundant information may potentially suffer from update anomalies. Types of update anomalies include: insertion, deletion, modification.

©Pearson Education 2009 First normal form (1NF) Only 1NF is critical in creating appropriate tables for relational databases. All subsequent normal forms are optional. A table in which the intersection of every column and record contains only one value. 9

©Pearson Education 2009 DistributionCenter table is not in 1NF 10

©Pearson Education 2009 Converting DistributionCenter table to 1NF 11

©Pearson Education 2009 Second normal form (2NF) A table that is in 1NF and in which the values of each non-primary-key column are determined by the values in all the columns that make up the primary key. To assess whether a table breaks 2NF form requires identification of the primary key and functional dependencies associated with that table. 2NF only applies to tables with composite primary keys. 12

©Pearson Education 2009 Functional dependency Describes the relationship between columns in a table and indicates how columns relate to one another. For example, consider a table with columns a and b, where b is functionally dependent on a (denoted a → b). If we know the value of a, we find only one value of b in all the records that has this value of a, at any moment in time. However, for a given value of b there may be several different values of a. 13

©Pearson Education 2009 Second normal form (2NF) Formal definition of 2NF is a table that is in 1NF and every non-primary-key column is fully functional dependent on the primary key. Full functional dependency indicates that if a and b are columns of a table, b is fully determined by a, if b is not determined by any subset of a. If b is determined by a subset of a, this is referred to as a partial dependency. Identification of partial dependencies on the primary key is evidence that a table is breaking 2NF and may suffer from update anomalies. 14

©Pearson Education 2009 TempStaffAllocation table is not in 2NF 15

©Pearson Education 2009 Converting TempStaffAllocation table to 2NF 16

©Pearson Education 2009 Third normal form (3NF) A table that is in 1NF and 2NF and in which the values in all non-primary-key column can be determined from only the primary key column(s) and no other columns. The formal definition of 3NF is a table that is in 1NF and 2NF and in which no non-primary-key column is transitively dependent on the primary key. 17

©Pearson Education 2009 Third normal form (3NF) A transitive dependency describes a relationship between columns a, b, and c. If a determines b (a → b) and b determines c (b → c), then c is transitively dependent on a via b (provided that b or c does not determine a). Identification of transitive dependencies on the primary key is evidence that a table is breaking 3NF and may suffer from update anomalies. 18

©Pearson Education 2009 The StaffDistributionCenter table is not in 3NF 19

©Pearson Education 2009 Converting StaffDistributionCenter table to 3NF 20