© Pearson Education Limited, 20041 Chapter 8 Normalization Transparencies.

Slides:



Advertisements
Similar presentations
D. Elia, R. SantoroITS week / SPD meeting - May 12, Test beam data analysis D. Elia, R. Santoro – Bari SPD Group Alignments, plane rotation for setup.
Advertisements

17 May Multiple Sites. 17 May Multiple Sites This presentation assumes you are already familiar with Doors and all its standard commands It.
An Advanced Shell Theory Based Tire Model by D. Bozdog, W. W. Olson Department of Mechanical, Industrial and Manufacturing Engineering The 23 rd Annual.
Automating Test File Creation Using Excel, UltraEdit, and Batch files to build test data.
Fitzkilism Production, Putting the Fun in Function By Mrs. Kiley Sandymount Elementary.
COAT -TRIBUNALS' MODEL PRACTICE GUIDE - AIJA COAT TRIBUNALS MODEL PRACTICE MANUAL Livingston Armytage Centre for Judicial Studies
8 April Doors TM Set System Options. 8 April Set System Options Allows you to set certain standard Doors operating parameters and enable certain.
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.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
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,
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: >
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.
Normalization Transparencies
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.
Normalization Transparencies 1. ©Pearson Education 2009 Objectives How the technique of normalization is used in database design. How tables that contain.
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
© 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.
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
ITD1312 Database Principles Chapter 4C: Normalization.
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
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.
Normalization Dongsheng Lu Feb 21, 2003.
Chapter 14 Normalization
Chapter 9 Designing Databases
Normalization.
Database Normalization
Chapter 14 & Chapter 15 Normalization Pearson Education © 2009.
Normalization.
Normalization Dongsheng Lu Feb 21, 2003.
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.
國立臺北科技大學 課程:資料庫系統 2015 fall Chapter 14 Normalization.
Chapter 7 Normalization Chapter 14 & 15 in Textbook.
Chapter 14 Normalization Pearson Education © 2009.
Database.
Presentation transcript:

© Pearson Education Limited, Chapter 8 Normalization Transparencies

© Pearson Education Limited, Chapter 8 - Objectives 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). The identification of various types of update anomalies such as insertion, deletion, and modification anomalies.

© Pearson Education Limited, Chapter 8 - Objectives How tables that break the rules of 1NF, 2NF, and 3NF are likely to contain redundant data and suffer from update anomalies. How to restructure tables that break the rules of 1NF, 2NF, and 3NF.

© Pearson Education Limited, Normalization A technique for producing a set of tables with desirable properties that support the requirements of a user or company.

© Pearson Education Limited, 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 base tables. Problems associated with data redundancy are illustrated by comparing the Staff and Branch tables with the StaffBranch table.

© Pearson Education Limited, Data redundancy and update anomalies

© Pearson Education Limited, Data redundancy and update anomalies

© Pearson Education Limited, Data redundancy and update anomalies StaffBranch table has redundant data; the details of a branch are repeated for every member of staff. In contrast, the branch information appears only once for each branch in the Branch table and only the branch number (branchNo) is repeated in the Staff table, to represent where each member of staff is located.

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

© Pearson Education Limited, 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.

© Pearson Education Limited, Branch table is not in 1NF

© Pearson Education Limited, Converting Branch table to 1NF

© Pearson Education Limited, Second normal form (2NF) 2NF only applies to tables with composite primary keys. A table that is in 1NF and in which the values of each non-primary-key column can be worked out from the values in all the columns that make up the primary key.

© Pearson Education Limited, TempStaffAllocation table is not in 2NF

© Pearson Education Limited, Functional dependency The particular relationships that we show between the columns of a table are more formally referred to as functional dependencies. Functional dependency describes the relationship between columns in a table.

© Pearson Education Limited, Functional dependency 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.

© Pearson Education Limited, 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 dependent on A if B is functionally dependent on A but not on any proper subset of A.

© Pearson Education Limited, Converting TempStaffAllocation table to 2NF

© Pearson Education Limited, Third normal form (3NF) A table that is in 1NF and 2NF and in which all non-primary-key column can be worked out from only the primary key column(s) and no other columns.

© Pearson Education Limited, StaffBranch table is not in 3NF

© Pearson Education Limited, Third normal form (3NF) 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.

© Pearson Education Limited, Third normal form (3NF) For example, consider a table with A, B, and C. If B is functional dependent on A (A B) and C is functional dependent on B (B C), then C is transitively dependent on A via B (provided that A is not functionally dependent on B or C). If a transitive dependency exists on the primary key, the table is not in 3NF.

© Pearson Education Limited, Converting the StaffBranch table to 3NF