DAT702 Normal Forms Normalization Rules. Normal Forms Normal Forms, also called Normalization rules, are basically processes or steps taken to allow for.

Slides:



Advertisements
Similar presentations
Chapter 18 Methodology – Monitoring and Tuning the Operational System Transparencies © Pearson Education Limited 1995, 2005.
Advertisements

Normalization Rules for Database Tables
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Microsoft Access Removing Redundancy in a Database.
Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.
3-1 Chapter 3 Data and Knowledge Management
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.
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
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.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Normalization Rules for Database Tables Northern Arizona University College of Business Administration.
Database Design Concepts
Normalization. Introduction Badly structured tables, that contains redundant data, may suffer from Update anomalies : Insertions Deletions Modification.
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapters 17 & 18 Physical Database Design Methodology.
MIS2502: Data Analytics Coverting ERD into a DB Schema David Schuff
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Concepts of Database Management, Fifth Edition
Database Normalization Lynne Weldon July 17, 2000.
CORE 2: Information systems and Databases NORMALISING DATABASES.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Normalization Information Systems II Ioan Despi. Informal approach Building a database structure : A process of examining the data which is useful & necessary.
Object Persistence (Data Base) Design Chapter 13.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
5. Database Design Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Rules of Database Normalization
Normalization of Database Tables
Normalization Transparencies 1. ©Pearson Education 2009 Objectives How the technique of normalization is used in database design. How tables that contain.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Methodology – Monitoring and Tuning the Operational System.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
Normalization Data Design - Mr. Ahmad Al-Ghoul
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 and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
Flat Files Relational Databases
NORMALIZATION: ‘1NF’ The general rule: ‘’Any field which can have many, must have its own table’’ By Sam Beaumont.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Flat file and relational databases Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse.
Revised: 2 April 2004 Fred Swartz
Databases Key Revision Points.
CIS 155 Table Relationship
Methodology – Monitoring and Tuning the Operational System
Chapter 4 Relational Databases
Databases A brief introduction….
What is a Database and Why Use One?
Normalization A337.
Methodology – Monitoring and Tuning the Operational System
System Analysis and Design
Presentation transcript:

DAT702 Normal Forms Normalization Rules

Normal Forms Normal Forms, also called Normalization rules, are basically processes or steps taken to allow for the efficient creation of Relational databases. Following these rules lead an administrator towards a set of tables that: allow data to be organized in an efficient manner reduce disk space requirements for data storage minimize or eliminate redundant data greatly reduce the chance of data entry errors provide programmers with a stable data platform from which to create efficient applications

The Rules We will concentrate on the first three rules as they should be enough to create proper data tables for most circumstances. Rule 1:If a table contains repeating groups (fields) of data then these groups (fields) should be removed and placed into another table (child/foreign) as a single field. Rule 2:If a table contains records that have repeating data (redundant) then create a new table. Rule 3:All fields within a table must relate directly to and describe the Primary Key.

Form 0 (Flat File) Notice the repeating groups of data (Course1, Course2). Adding course data limited to number of current fields Violates all 3 Normal Form rules Table: Students Student# Name Course1 CourseDesc1 Course2 CourseDesc Fred DAT702 Database Admin CDD301 DataComm Jane OPS400 AS/400 OPS440 Unix Admin

Correcting with Rule #1 Table: Students StudentNo Name Course1 CourseDesc1 Course2 CourseDesc Fred DAT702 Database Admin DCN386 DataComm Jane OPS400 AS/400 OPS435 Unix Admin StudentNo Name CourseCode CourseDesc Fred DAT702 Database Admin Fred DCN386 DataComm Jane OPS400 AS/ Jane OPS435 Unix Admin Table: Students Converted to 1st Normal Form Better: But still violates Rules 2 & 3

Correcting with Rule #2 StudentNo(P) Name Fred Jane Table: Students Converted to 2 rd Normal Form Table: Courses Primary – Foreign Key Relationship StudentNo Name CourseCode CourseDesc Fred DAT702 Database Admin Fred DCN386 DataComm Jane OPS400 AS/ Jane OPS435 Unix Admin Rule 3 violation CourseCode(P) StudentNo(F) CourseDesc DAT Database Admin DCN DataComm OPS AS/400 OPS Unix Admin

Correcting with Rule #3 StudentNo(P) Name Fred Jane Table: Students Converted to 3 rd Normal Form Table: Stud_Courses Primary – Foreign Key Relationship StudentNo(P) Name Fred Jane CourseCode(F) StudentNo(F) DAT DCN OPS OPS Table: Students Table: Courses CourseCode(P) Description DAT702 Database Admin DCN386 DataComm OPS400 AS/400 Table: Courses CourseCode(P) StudentNo(F) CourseDesc DAT Database Admin DCN DataComm OPS AS/400 OPS Unix Admin