Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.

Slides:



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

Chapter 5 Normalization of Database Tables
Database Tables and Normalization
Normalization Rules for Database Tables
Chapter 5 Normalization of Database Tables
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.
NORMALIZATION FIRST NORMAL FORM (1NF): A relation R is in 1NF if all attributes have atomic value = one value for an attribute = no repeating groups =
Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
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.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
Project and Data Management Software
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,
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
NORMALIZATION N. HARIKA (CSC).
Normalization Quiz Tao Li Grant Horntvedt. 1. Which of the following statements is true: a. Normal forms can be derived by inspecting the data in various.
Normalization Rules for Database Tables Northern Arizona University College of Business Administration.
Week 6 Lecture Normalization
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
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.
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 4 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 4 Normalization.
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.
資料庫正規化 Database Normalization 取材自 AIS, 6 th edition By Gelinas et al.
Database Normalization Lynne Weldon July 17, 2000.
Normalization Copyright © 1999 Patrick McDermott College of Alameda
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.
SQL Structured Query Language Programming Course.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
Further Normalization I
1 5 Normalization. 2 5 Database Design Give some body of data to be represented in a database, how do we decide on a suitable logical structure for that.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
By Abdul Rashid Ahmad. E.F. Codd proposed three normal forms: The first, second, and third normal forms 1NF, 2NF and 3NF are based on the functional dependencies.
Database Design – Lecture 8
Rules of Database Normalization
1 5 Chapter 5 Database Design 1: Some Normalization Examples Spring 2006.
Normalization of Database Tables
Competitive (Business) Intelligence Systems The Road to Denormalization (starring Charlie Sheen & other Random Celebrities)
DAT702 Normal Forms Normalization Rules. Normal Forms Normal Forms, also called Normalization rules, are basically processes or steps taken to allow for.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 04 – 05 – 2005.
Normalisation RELATIONAL DATABASES.  Last week we looked at elements of designing a database and the generation of an ERD  As part of the design and.
April 20022CS3X1 Database Design Normalisation (1) John Wordsworth Department of Computer Science The University of Reading Room.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
Databases Introduction - concepts. Concepts of Relational Databases.
Texas State Technical College DISCOVER! Third Normal Form - 3NF It’s all about the key, the whole key, and nothing but the key.
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.
Relational Databases – Further Study I think we’ve covered all you need to know for GCSE about relational databases I’m not aware of any practical coursework.
Normal Forms 1NF – A table that qualifies as a relation is in 1NF. (Back)(Back) 2NF – A relation is in 2NF if all of its nonkey attributes are dependent.
INLS 623 – Database Normalization
Revised: 2 April 2004 Fred Swartz
Normalization A337.
Logical Data Modeling – Normalization
Database Design: Relational Model
Database Normalization.
Presentation transcript:

Normalizing Your Database CPT 242

Normalization The procedure where the developer analyzes the data and establishes the table structure to create the most efficient DB Redundant data is eliminated, files will be as small as possible, and records will be easy to identify 1st, 2nd, 3rd Normal Form are the steps to normalize the data CPT Slide 2

1st Normal Form Repeating attributes are removed from tables Stated another way - Eliminate repeating groups of fields CPT Slide 3

1st Normal Form- Problems Identified CPT Slide 4 EMPLOYEES *paynum lname fname dept deptname empdate glasspurch1 doctor1 doctor1phone glasspurch2 doctor2 doctor2phone Remove from this table and create a new table to contain. Repeating attributes are removed from tables REPEATING FIELD

1st Normal Form-Completed CPT Slide 5 EMPLOYEES *paynum lname fname dept deptname empdate GLASSPURCH *paynum *purchdate doctor doctorphone 1 M

2nd Normal Form 2NF violations can only occur in tables with composite PKs All non-key fields in the table must be dependent on the entire PK The fields must be dependent on the whole PK, not just part of a composite key If fields are found that are not, they should be placed in their own table CPT Slide 6

2nd Normal Form- Problems Identified CPT Slide 7 GLASSPURCH *paynum *purchdate doctor doctorphone 2NF violations can only occur in tables with composite PKs All non-key fields in the table must be dependent on the entire PK Remove from this table and create a new table to contain. NOT DEPENDENT ON ENTIRE PK

2nd Normal Form-Completed CPT Slide 8 GLASSPURCH *paynum *purchdate doctor (FK) EYEDOCTOR *doctor doctorphone 1 M

3rd Normal Form 3NF violations can only occur in tables with single field PKs All non-key columns are dependent on the PK and nothing but the PK All non-key columns must be independent of each other CPT Slide 9

3rd Normal Form- Problems Identified CPT Slide 10 3NF violations can only occur in tables with single field PKs All non-key fields in the table must be dependent on the PK All non-key columns must be independent of each other Remove from this table and create a new table to contain. EMPLOYEES *paynum lname fname dept deptname empdate NOT DEPENDENT ON PK DEPENDENT ON DEPT FIELD

3rd Normal Form-Completed CPT Slide 11 DEPARTMENT *dept deptname 1 M EMPLOYEES *paynum lname fname dept empdate

3NF - Entire DB CPT Slide 12 GLSSPUR *paynum *purchdate doctor(FK) EYEDR *doctor doctorph M 1 DEPT *dept deptname 1 M EMP *paynum lname fname dept empdate 1 M