Database Normalization Lynne Weldon July 17, 2000.

Slides:



Advertisements
Similar presentations
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Advertisements

Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
The Relational Database Model:
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
Designing a Database Unleashing the Power of Relational Database Design.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
System Analysis and Design
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
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.
Database Normalization CP3410 Daryle Niedermayer, I.S.P., PMP.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Chapter 6 Data Flow Diagramming Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Introduction to Databases
Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Normalization Rules for Database Tables Northern Arizona University College of Business Administration.
Week 6 Lecture Normalization
VCE IT Theory Slideshows
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Normalization. Database Normalization Database normalization is the process of removing redundant data from your tables in to improve storage efficiency,
Cambridge TEC - Level 3 Certificate/Diploma IT. ICT Dept ScenarioLO1LO2LO3.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Normalization in Databases
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
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.
資料庫正規化 Database Normalization 取材自 AIS, 6 th edition By Gelinas et al.
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.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Rules of Database Normalization
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
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.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Lesson 2: Designing a Database and Creating Tables.
DAT702 Normal Forms Normalization Rules. Normal Forms Normal Forms, also called Normalization rules, are basically processes or steps taken to allow for.
Flat Files Relational Databases
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Microsoft Access 2010 Chapter 11 Database Design.
RELATIONAL TABLE NORMALIZATION. Key Concepts Guidelines for Primary Keys Deletion anomaly Update anomaly Insertion anomaly Functional dependency Transitive.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
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.
Database Planning Database Design Normalization.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
1 Normalization David J. Stucki. Outline Informal Design Guidelines Normal Forms  1NF  2NF  3NF  BCNF  4NF 2.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
Database Normalization
Databases A brief introduction….
Normalization A337.
1st, 2nd, and 3rd Normal Forms
1st, 2nd, and 3rd Normal Forms
Introduction to MySQL NELINET October 28th, 2005.
Presentation transcript:

Database Normalization Lynne Weldon July 17, 2000

2 Database Basics Collection of related information organized as –Tables Information about a particular physical or conceptual object –Examples: instructors, courses, books, students –Records, represented as rows Information about a particular instance of the object –Examples: 1 instructor, 1 course, 1 book, 1 student –Fields, represented as columns Particular piece of information about the objects in the database –Examples: instructor's last name, course number, book title, student's SSN

3 Employee Database Table without Primary Key The Employee Table is comprised of –8 Records (1 per employee), each containing 5 Fields –Last Name, First Name, Dept Code, Dept Name, Dept Bldg Problem - No field to uniquely identify a record

4 Employee Database Table with Primary Key A Primary Key is one or more fields which uniquely identify a record The Employee ID field is the Primary Key for the Employee Table If you know an employee's ID, you will always be able to locate the record for that employee

5 Why Normalize Data? Save typing of redundant data which will reduce the effect of data entry errors Save storage space Avoid frequent restructuring of tables and other objects to accommodate new data Increase flexibility to query, sort, summarize, and group data To have the most efficiently designed tables

6 What is Normalization? Organizing data to minimize redundancy Successive steps followed to identify and eliminate poor table definition Each step is referred to as a "Form" –1st Normal Form (1NF) –2nd Normal Form (2NF) –3rd Normal Form (3NF) –4th Normal Form (4NF) –5th Normal Form (5NF) Database designers agree that 3NF is sufficient for most databases

7 Expected Outcome as Normalization Proceeds Absence of fields containing no data More database tables Less fields in each of the new database tables Elimination of non-key redundant data

8 Unnormalized Database Table What has to be done if an employee is assigned a fourth project? Notice the blank fields There are repeating fields to store project information for each employee Each time a new employee is added, the complete department information (3 fields) must be entered How many records must be changed if the name of a department or a building changes? (Example: Technical Writing) Notice the redundant data

9 Establishing First Normal Form Eliminate repeating groups of fields. Problems in the Employee Table –Repeating fields are used for each project an employee is assigned to Project Number Time Spent on Project

10 First Normal Form Established The table does not contain repeating groups of fields. There is one Project Number field and one Time Spent on Project field. Separate records were created for additional projects an employee is assigned.

11 Establishing Second Normal Form Applies to database tables that have a multiple-field primary key. Insure that each non-key field relates to the entire multiple- field primary key. Place fields that do not describe the entire multiple-field primary key in a separate table. multiple-field primary key Problems in the Employee Table –Unrelated non-key fields: Last Name, First Name, Department fields

12 Second Normal Form Established This table has a multiple-field primary key. Each non-key field relates to the entire primary key. All other fields were placed in a new table.

13 Establishing Third Normal Form Applies to database tables that have a single-field primary key. Each non-key field is a fact about the primary key. Place fields that do not describe the single-field primary key in a separate table. Problems in the Employee Table –Unrelated non-key fields: Department Name, Dept Bldg single-field primary key

14 Third Normal Form Established Applies to tables with a single-field primary key. Each non-key field is a fact about the primary key. About Employees About Departments These values do not describe the key; they are put in a separate table.

15 Employee Database in 3rd Normal Form Projects Table Departments Table Employees Table

16