Normalization By Albert Lin. 2 Basics Process of efficiently organizing data in a database. Goals Eliminate redundant data Ensure data dependency sensibility.

Slides:



Advertisements
Similar presentations
Chapter 5 Normalization of Database Tables
Advertisements

Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Normalization What is it?
Normalisation The theory of Relational Database Design.
Relational Databases Chapter 4.
Normalization of Database Tables Special adaptation for INFS-3200
Normalization of Database Tables
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Normalization of Database Tables
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Normalization of Database Tables
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.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Week 6 Lecture Normalization
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
Database Systems: Design, Implementation, and Management Tenth Edition
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
The Relational Model and Normalization R. Nakatsu.
1 DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
CORE 2: Information systems and Databases NORMALISING DATABASES.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
Component 4/Unit 6d Topic IV: Design a simple relational database using data modeling and normalization Description and Information Gathering Data Model.
Database Principles: Fundamentals of Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables Carlos Coronel, Steven.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
©NIIT Normalizing and Denormalizing Data Lesson 2B / Slide 1 of 18 Objectives In this section, you will learn to: Describe the Top-down and Bottom-up approach.
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
Relational Model & Normalization Relational terminology Anomalies and the need for normalization Normal forms Relation synthesis De-normalization.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
Database Systems, 8 th Edition Improving the Design Table structures cleaned up to eliminate initial partial and transitive dependencies Normalization.
Brian Thoms.  Databases normalization The systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain.
Logical Database Design and the Relational Model.
IST Database Normalization Todd Bacastow IST 210.
NORMALIZATION: ‘1NF’ The general rule: ‘’Any field which can have many, must have its own table’’ By Sam Beaumont.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
Normalization ACSC 425 Database Management Systems.
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.
SLIDE 1IS 257 – Fall 2006 Normalization Normalization theory is based on the observation that relations with certain properties are more effective.
Database Planning Database Design Normalization.
MS Access. Most A2 projects use MS Access Has sufficient depth to support a significant project. Relational Databases. Fairly easy to develop a good user.
SQL Basics Review Reviewing what we’ve learned so far…….
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
Normalizing Database Designs. 2 Objectives In this chapter, students will learn: –What normalization is and what role it plays in the database design.
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
DBMS Questions and Answers.
Normalization Karolina muszyńska
A brief summary of database normalization
Chapter 5: Logical Database Design and the Relational Model
Chapter 4 Relational Databases
Database Normalization
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Normalization Referential Integrity
Chapter 6 Normalization of Database Tables
Normalization A337.
1st, 2nd, and 3rd Normal Forms
Normalization Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting.
1st, 2nd, and 3rd Normal Forms
Database Normalization.
Presentation transcript:

Normalization By Albert Lin

2 Basics Process of efficiently organizing data in a database. Goals Eliminate redundant data Ensure data dependency sensibility

3 Benefits Faster sorting and index creation Larger clustered indexes Narrow and compact indexes Fewer indexes per table. Fewer null values Less inconsistencies

4 Brief Description of Normal Forms 1 st Normal Form No repeating groups 2 nd Normal Form Each column depends entirely on the primary key. 3 rd Normal Form Each column depends directly on the primary key. 4 th Normal Form Isolate independent multiple relationships. 5 th Normal Form Isolate Semantically related multiple relationships. Boyce-Codd Normal Form Non Trivial dependencies between candidate keys. Optimal Normal Form Limited to simple Facts Domain-Key Normal Form No modification anomolies

5 Additional Information 1 st Normal Form Addresses the structure of an isolated table. 2 nd, 3 rd and Boyce Codd Normal Form Addresses 1-1 and 1-many relationships. 4 th and 5 th Normal Form Many-Many relationships. These forms are cumulative.

6 Anomalies Insertion Anomalies Duplication of data enforced impossible due to entity integrity Deletion Anomalies Leads to undesired loss of data. Modification Anomalies Modification of multiple rows can lead to inconsistencies. Databases that are sufficiently normalized can reduce anomalies from occurring.

7 Tips Make a table for each list. Use non-meaningful primary keys Eliminate Repeating Groups Eliminate Columns not dependent on Primary Key Each table should have an identifier Should only store data for a single type of entity. Avoid null columns

8 Additional Tips Records are free, new fields are expensive. Know when data requires duplication Use referential integrity The higher normal form generally results in faster data retrieval.

9 Questions to ask What data do you need? What are you going to do with the data? How are the data related? What is the future of the data?

10 Examples of Bad Databases SIDClassTimeLocationProf_ID 0015CS16610:30MH CS14612:00MH CS1661:30MH CS1518:00MH CS1569:00MH CS12010:30DH CS0468:00MH CS1405:00MH CS1403:00MH

11 Problems with the database In a large scale database, information would be repeated numerous times, resulting in redundant data Retrieval of data would be difficult and long Index creation would be difficult.

12 In Practice Many databases are “de-normalized” to some degree. This is due to performance issues. It may require fewer joins and result in faster retrievals. However, before doing “de-normalization” performance issues must exist and de- normalization must dramatically improve it before introducing a suboptimal design A de-normalized table can be harder to update.

13 Overall topics Normalization helps organization and speed of organizing a database, which can help a company produce a database system that is quick and easily accessible. The higher the normal form, the less chance anomalies will arise. In case of performance issues, de- normalization can be done in order to increase performance.

Final Motto: Strive for Single Themed Tables.

15 References Litt, Steve. “Normalization” “Rules of Data Normalization” “Normalization” us/createdb/cm_8_des_02_2oby.asp Chung,Luke. “Database Normalization Tips”. FMS Janert, Phillip. “Practical Database”. IEEE Reus, Bernhard. “Databases”. University of Sussex /dbXIII.pdf Wyllys, R.E. “Steps in Normalization” University of Texas at Austin #Section%206.%20Anomalies%20and%20Normalization