Normalization (Chapter 2)

Slides:



Advertisements
Similar presentations
Chapter 5 Normalization of Database Tables
Advertisements

5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Normalization of Database Tables
Chapter 5 Normalization of Database Tables
Chapter 5 Normalization of Database Tables
Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina.
September 24, R McFadyen1 The objective of normalization is sometimes stated “to create relations where every dependency is on the primary.
Normalization Normalization We discuss four normal forms: first, second, third, and Boyce-Codd normal forms 1NF, 2NF, 3NF, and BCNF Normalization.
Chapter 5 Normalization of Database Tables
Normalization of Database Tables Special adaptation for INFS-3200
Need for Normalization
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
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 of Database Tables
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
5 Chapter 5 Normalization of Database Tables Example Database Systems: Design, Implementation, and Management, Rob and Coronel Special adaptation for INFS-3200.
NORMALIZATION N. HARIKA (CSC).
Chapter 5 Normalization of Database Tables
Avoiding Database Anomalies
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Design – Lecture 8
Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management Peter Rob & Carlos Coronel.
Database Design – Lecture 9 Normalization Continued.
Chapter 4 Normalization of Database Tables. 2 Database Tables and Normalization Table is basic building block in database design Table is basic building.
E-R Modeling: Table Normalization. Normalization of DB Tables Normalization ► Process for evaluating and correcting table structures determines the optimal.
Review Database Application Development Access Database Development Theory Practice.
11/10/2009GAK1 Normalization. 11/10/2009GAK2 Learning Objectives Definition of normalization and its purpose in database design Types of normal forms.
Database Design Theory CS405G: Introduction to Database Systems Jinze Liu 3/15/20161.
Week 4 Lecture Part 1 of 3 Normalization of Database Tables Samuel ConnSamuel Conn, Asst. Professor.
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Normalization.
Chapter 5: Relational Database Design
Advanced Normalization
Normalization Karolina muszyńska
CS 3630 Database Design and Implementation
A brief summary of database normalization
Chapter 4: Relational Database Design
Chapter 5: Logical Database Design and the Relational Model
Chapter 2 Problem Solutions
Database Design Process (Chapter 3)
Payroll Management System
Advanced Normalization
Functional Dependencies and Normalization
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Normalization There is a sequence to normal forms:
Database Normalization
Chapter 6 Normalization of Database Tables
CSCI 2141 – Intro to Database Systems Database Normalization
CS 3630 Database Design and Implementation
Normalization Boyce-Codd Normal Form Presented by: Dr. Samir Tartir
Boyce-Codd Normal Form (BCNF)
Database solutions The process of normalization Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms:
Normalization Normalization
CS 3630 Database Design and Implementation
Normalization.
Normalization Edited by: Nada Alhirabi.
Normalization of Database Tables Uploaded by: mysoftbooks.ml
4 Normal Form.
Boyce-Codd Normal Form (BCNF)
Normalization of DB relations examples Fall 2015
Sampath Jayarathna Cal Poly Pomona
Sampath Jayarathna Cal Poly Pomona
DATABASE DESIGN & DEVELOPMENT
Database Normalization.
Database Design Theory CS405G: Introduction to Database Systems
Review of Week 3 Relation Transforming ERD into Relations
Mapping an ERD to a Relational Database
Database Normalization
Presentation transcript:

Normalization (Chapter 2) Peter Rob and Elie Semaan Databases: Design, Development, and Deployment Using Microsoft Access Second Edition

Dependencies All key attributes must be dependent on the Primary Key (PK) If the PK is a composite PK and an attribute is dependent on only a part of the composite PK, a partial dependency exists If an attribute is dependent on a non-key attribute, it exhibits a transitive dependency

The Dependency Diagram EMP_NUM EMP_LNAME EMP_FNAME EMP_DOB PK is bold-faced and underlined (shown in orange) Single-attribute PK (simple PK) All employee attributes are dependent on the PK

Partial Dependency PROJ_CODE EMP_NUM PROJ_NAME HRS_WORKED PK components are bold-faced and underlined Multi-attribute PK (composite PK) All work assignment attributes are dependent on the PK But the PROJ_CODE, which is only a part of the PK, determines the PROJ_NAME (or the PROJ_NAME is dependent on the PROJ_CODE)

Transitive Dependency STU_NUM STU_LNAME DEPT_CODE DEPT_NAME Transitive dependency PK is bold-faced and underlined Single-attribute PK (simple PK) All student attributes are dependent on the PK But DEPT_CODE determines DEPT_NAME (or DEPT_NAME is dependent on DEPT_CODE, a non-key attribute

The First Normal Form (1NF) All key attributes are defined Each row/column intersection contains one and only one value, rather than a set of values All attributes are dependent on the primary key (PK)

Transitive dependency First Normal Form (1NF) INV_NUM LINE_NUM PROD_CODE PROD_TITLE CUS_NUM LINE_UNITS Transitive dependency Partial dependency

The Second Normal Form (2NF) Meets 1NF requirements Does not contain partial dependencies But does contain transitive dependencies

Normalization: Initial Decomposition 1. Identify each PK attribute in the 1NF dependency diagram. In this case, INV_NUM and LINE_NUM constituted the PK. INV_NUM 2. Write each PK attribute on a separate line LINE_NUM 3. Write the original PK on the final line INV_NUM LINE_NUM

Normalization: Creating New Structures INV_NUM CUS_NUM Table in 3NF; no partial or transitive dependencies LINE_NUM No dependencies, no table Table is in 2NF, with a remaining transitive dependency INV_NUM LINE_NUM PROD_CODE PROD_TITLE LINE_UNITS Transitive dependency

The Third Normal Form (3NF) Meets 2NF requirements Does not contain transitive dependencies

Normalization: Completed 3NF Structures Table name: INVOICE INV_NUM CUS_NUM 3NF; no partial or transitive dependencies Table name: PRODUCT PROD_CODE PROD_TITLE 3NF; no partial or transitive dependencies Table name: LINE 3NF; no partial or transitive dependencies INV_NUM LINE_NUM PROD_CODE LINE_UNITS

The Boyce-Codd Normal Form (BCNF) Meets 3NF requirements Every determinant in the table is a candidate key

Normalization: Boyce-Codd NF Panel 1 A B C D E F G 3NF, but not BCNF Panel 2 A E C D B F G Conversion to 2NF Partial dependency Panel 3 A E C D F G E B 3NF and BCNF

The END