1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.

Slides:



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

Normalisation.
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
RJP/RDA 1 /93 Relational Data Analysis (RDA) RDA organises all the system’s data items into a set of well NORMALISED relations. These should avoid: 1.
Topic Database Normalisation S McKeever Advanced Databases 1.
Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
Normalisation “A formal technique for analysing relations based on their primary key and functional dependencies.” [Codd]. Process – Analyse each relation.
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.
CS263:Revision on Normalisation
Normalisation up to 1NF Bottom-up Approach to Data Modelling.
Project and Data Management Software
NORMALIZATION N. HARIKA (CSC).
Chapter 6 Data Flow Diagramming Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 29 – 04 – 2005.
VCE IT Theory Slideshows
Modelling Techniques - Normalisation Description and exemplification of normalisation.Description and exemplification of normalisation. Creation of un-normalised.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
Cambridge TEC - Level 3 Certificate/Diploma IT. ICT Dept ScenarioLO1LO2LO3.
Section 11 : Normalisation
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
Richard Merritt1 Data Modelling Entities, Attributes and Relationships.
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.
Normalisation Mia’s Sandwich Shop The Process Explained.
Normalization Are we Normal. Normalization Normalization is the process of converting complex data structures into simple, stable data structures It also.
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.
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.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
In this chapter, you learn about the following: ❑ Anomalies ❑ Dependency and determinants ❑ Normalization ❑ A layman’s method of understanding normalization.
CORE 2: Information systems and Databases NORMALISING DATABASES.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
1 Information Retrieval and Use Data Analysis & Data Modeling, Relational Data Analysis and Logical Data Modeling Geoff Leese September 2009.
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.
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.
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
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.
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.
Sample Table Standard Notation Entity name in uppercase
Databases Database Normalisation. Learning Objectives Design simple relational databases to the third normal form (3NF).
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
Week 4 Lecture Part 1 of 3 Normalization of Database Tables Samuel ConnSamuel Conn, Asst. Professor.
Normalization ACSC 425 Database Management Systems.
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.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
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.
Starter Draw a mind map for topic 6 Databases. Objectives Revise topic CG3.6 Databases using various activities and ensure that topics covered are understood.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Normalisation Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.
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.
Logical Design & the Relational Model
Revised: 2 April 2004 Fred Swartz
Chapter 6 Data flow diagramming ACCOUNTING INFORMATION SYSTEMS
Examples of normalization
Normalization Referential Integrity
1st, 2nd, and 3rd Normal Forms
Examples of normalization
Database Normalisation
1st, 2nd, and 3rd Normal Forms
Logical Data Modeling – Normalization
Lecture 04 Normalization.
Database Normalization.
BTEC ICT – Unit 18 With Mr Griffiths.
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Presentation transcript:

1 NORMALISATION

2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary

3 Overview The development of the application (creating an Access database) is usually one of the easiest steps in the process. Correct design of the database is one of the hardest steps but is of the utmost importance. In this lecture we concentrate upon this.

4 Objectives By the end of this lecture the student should: Appreciate the need for normalisation Understand what is meant by 1st, 2nd & 3rd Normal Form Be able to perform simple normalisation

5 Intro. to Subject DFD’s provide data flow info and process modelling ERM provides entities & attributes (top down modelling) Normalisation is designing a robust DB (bottom up modelling)

6 Why Normalise ? Data Modelling captures the data a system needs to store Normalisation has two main objectives: ID of entities Logical model

7 How it links to Access All data of interest to system belongs in one database Each entity is an Access table Each attribute is an Access field Using Normalisation you will identify the primary key

8 Normalisation Normalisation is an algorithm for reducing complex data structures to simple structures Also known as Codd’s or Boyce Codd’s law

9 Normalisation Data that is not normalised can create insert/update/delete anomalies. Minimise Data Redundancy Achieve logical data grouping Will not ensure that we have captured all the data

10 First Normal Form (1NF) Definition: An entity is in First Normal Form if it has an identifying key and there are no repeating attributes or groups of attributes

11 First Normal Form (1NF) To remove repeating groups: *Leave non-repeating attributes alone ( 1NF entity) *Remove repeating attributes to separate 1NF entity whose key will be original key + key to repeating group

12 Second Normal Form (2NF) Definition: An entity is in 2NF if it is in first normal form and has no attributes which require only part of the key to identify them uniquely.

13 Second Normal Form (2NF) To remove part-key dependencies check that each non-key attribute depends on the whole key to determine it. for each subset of a key, create a new separate entity

14 Third Normal Form (3NF) Definition: An entity is in 3NF if and only if it is in 2NF and no non-key attribute depends on any other non-key

15 Keys A Simple key is the unique identifier. A Compound key is made up of two or more simple keys. This creates the link between the two entities. A Foreign key is a non-key attribute in one entity which is a key attribute in another.

16 Example For example a school has four floors and on each floor there are rooms one to twenty. Floor and room repeat; to identify a single room we use: (Floor Number) (Room Number) The brackets mean that the lower level non-unique identifier room number must have the higher level unique identifier to make the whole key unique.

17 Example Course Registration Record Course Record Course Code: FR001 Course Description: Beginning French

18 Example UNF Level Course Code 1 Course Descr.1 E-No2 Name2 Hours2 Room2 Tel-no2

19 Example 1NF Course Code Course Descr Course Code E-No Name Hours Room Tel-no

20 Example 2NF Course Code Course Descr Course Code E-No Hours E-No Name Room Tel-No

21 Example 3NF Course Code Course Descr Course Code E-No Hours E-No Name Room* Room Tel-No Thus we have identified FOUR entities: Course, Employee-on-Course, Employee & Room

22 Summary Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example