Texas State Technical College DISCOVER! Third Normal Form - 3NF It’s all about the key, the whole key, and nothing but the key.

Slides:



Advertisements
Similar presentations
Database Design: Normalization J.G. Zheng June 29 th 2005 DB Chapter 4.
Advertisements

5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Chapter 5 Normalization of Database Tables
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Texas State Technical College DISCOVER! Second Normal Form - 2NF It has to be the whole key.
Normalisation Ensuring data integrity in database design 1.
Logical Data Modeling Review Lecture for University of Agder, Grimstad DAT202 Databaser (5.5.11) Judith Molka-Danielsen
Normalization of Database Tables
Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Normal Forms in Relational Databases 1 1 Bolstad, P. pp
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
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.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
NORMALIZATION N. HARIKA (CSC).
Normalization. Introduction Badly structured tables, that contains redundant data, may suffer from Update anomalies : Insertions Deletions Modification.
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
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Functional Dependence An attribute A is functionally dependent on attribute(s) B if: given a value b for B there is one and only one corresponding value.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Database Systems: Design, Implementation, and Management Tenth Edition
Concepts of Database Management, Fifth Edition
A Normalisation Example Mark Kelly McKinnon Secondary College Vceit.com Based on work by Robert Timmer-Arends.
The Relational Model and Normalization R. Nakatsu.
1 A Guide to MySQL 2 Database Design Fundamentals.
1 DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
資料庫正規化 Database Normalization 取材自 AIS, 6 th edition By Gelinas et al.
Database Normalization Lynne Weldon July 17, 2000.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Normalization Copyright © 1999 Patrick McDermott College of Alameda
CORE 2: Information systems and Databases NORMALISING DATABASES.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
Customer Order Order Number Date Cust ID Last Name First Name State Amount Tax Rate Product 1 ID Product 1 Description Product 1 Quantity Product 2 ID.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
Database Design – Lecture 8
Normalization Transparencies 1. ©Pearson Education 2009 Objectives How the technique of normalization is used in database design. How tables that contain.
Texas State Technical College DISCOVER! Cartesian Product Cover all the bases.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
A337 - Reed Smith1 Structure What is a database? –Table of information Rows are referred to as records Columns are referred to as fields Record identifier.
IT The Relational DBMS Section 05. Relational Database Theory Normalization for Logical Database Design.
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Normalisation 1NF to 3NF Ashima Wadhwa. In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third.
Microsoft Access 2010 Chapter 11 Database Design.
Normalization ACSC 425 Database Management Systems.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
Databases Introduction - concepts. Concepts of Relational Databases.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Lecture # 17 Chapter # 10 Normalization Database Systems.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 4: PART C LOGICAL.
Normalizing Database Designs. 2 Objectives In this chapter, students will learn: –What normalization is and what role it plays in the database design.
Dr Gordon Russell, Napier University Normalisation 1 - V2.0 1 Normalisation 1 Unit 3.1.
A brief summary of database normalization
Normalization A337.
Chapter 4.1 V3.0 Napier University Dr Gordon Russell
Database Normalization.
Normalisation 1 Unit 3.1 Dr Gordon Russell, Napier University
Presentation transcript:

Texas State Technical College DISCOVER! Third Normal Form - 3NF It’s all about the key, the whole key, and nothing but the key.

Texas State Technical College DISCOVER! Third Normal Form (3NF) 3NF is a sufficient level of normalization for most databases. At this point, the data is sufficiently organized to be useful as information to most organizations or entities. The focus of 3NF is to eliminate dependencies among non-key fields. Overview

Texas State Technical College DISCOVER! In order for a table to be considered 3NF, it must be 2NF and, consequentially, 1NF. In order for a table to be considered 3NF, all fields in the table must have NO Functional dependence upon non-key fieldsFunctional dependence upon non-key fields Transitive relationships to the primary keyTransitive relationships to the primary key Essentially, all fields must be directly related to or dependent upon the primary key. The Technical Definition Third Normal Form (3NF)

Texas State Technical College DISCOVER! Functional dependence Field Order_Total is dependent upon fieldsField Order_Total is dependent upon fields Order_QuantityOrder_Quantity Order_Item_PriceOrder_Item_Price The functional dependence is defined asThe functional dependence is defined as Order_Total = Order_Quantity X Order_Item_PriceOrder_Total = Order_Quantity X Order_Item_Price Transitive dependence Field Ship_Company is directly dependent uponField Ship_Company is directly dependent upon Shipment_ID (primary key)Shipment_ID (primary key) Field Ship_Company_Address is dependent uponField Ship_Company_Address is dependent upon Ship_Company to link or relate toShip_Company to link or relate to Shipment_IDShipment_ID The Layman’s Definition Third Normal Form (3NF)

Texas State Technical College DISCOVER! Functional dependence Increases data redundancy and reduces independenceIncreases data redundancy and reduces independence An update to one field requires update to othersAn update to one field requires update to others Transitive dependence Indicates a field is not describing the object represented by the record or tableIndicates a field is not describing the object represented by the record or table Field describes another object and should be in that object’s tableField describes another object and should be in that object’s table Why Eliminate … Third Normal Form (3NF)

Texas State Technical College DISCOVER! For Example… Order Order_ID pk QuantityPriceTotal TextNumberCurrency Shipment ID pk ProviderWeight$perLBCost Text NumberCurrency 65664FedEx USPS USPS Two examples of functional dependence. Third Normal Form (3NF)

Texas State Technical College DISCOVER! For Example… Item ID pk MfgAddressWeight Text Number 19568Bins812 Bins Rd B&D113 Sears St Shallot888 9 th St Vehicle ID pk Engine fk MaxHPMakeModel Text NumberText 65664SVT-V8340FordCobra 55555COT-82115MercuryCougar 87954CMN-99220DodgeRam Two examples of transitive dependence. Third Normal Form (3NF)

Texas State Technical College DISCOVER! 1.For each field, identify its dependencies and their type. 2.If it is a functional dependency on a non-key field, simply delete the dependent field. If there is a functional dependence, the value can be computed when the information is retrieved from the table. 3.If it is transitive dependence, treat it as a partial dependence in 2NF. Handle like in 2NF. Either move to the parent table or create a new table. 4.Repeat the process until database is 3NF. The database is 3NF when all tables in the database are 3NF. Converting to 3NF Third Normal Form (3NF)

Texas State Technical College DISCOVER! Corrected Example… Order Order_ID pk QuantityPrice TextNumberCurrency Shipment ID pk ProviderWeight$perLB Text NumberCurrency 65664FedEx USPS USPS Functional dependence: The dependent field has been discarded. FIXED: The tables are now 3NF! Third Normal Form (3NF)

Texas State Technical College DISCOVER! Corrected Example… Item ID pk Mfg fk Weight Text Number 19568Bins B&D26.00 Vehicle ID pk Engine fk MakeModel Text 65664SVT-V8FordCobra 55555COT-82MercuryCougar 87954CMN-99DodgeRam Engine ID pk MaxHP TextNumber SVT-V8340 COT CMN Manufacturer ID pk Address Text Bins812 Bins Rd. B&D113 Sears St. Transitive dependence: The dependent field moved to own table. FIXED: The tables are now 3NF! Third Normal Form (3NF)

Texas State Technical College DISCOVER! In Summary… Third normal form (3NF) is defined asThird normal form (3NF) is defined as 1NF and 2NF1NF and 2NF Having no functional dependenciesHaving no functional dependencies Having no transitive dependenciesHaving no transitive dependencies 3NF is a sufficient normalization for most databases.3NF is a sufficient normalization for most databases. 3NF guarantees independence and eliminates data redundancy.3NF guarantees independence and eliminates data redundancy. Third Normal Form (3NF)