Normalisation Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.

Slides:



Advertisements
Similar presentations
Normalisation.
Advertisements

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.
Normalization What is it?
Relational Database Systems Higher Information Systems.
Section 11 : Normalisation - A Worked Example
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.
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.
Relational Data Analysis Learning outcomes  understand the process of normalisation;  perform Relational Data Analysis;  recognise the importance of.
CS263:Revision on Normalisation
Normalisation up to 1NF Bottom-up Approach to Data Modelling.
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
Normalisation up to 1NF Bottom-up Approach to Data Modelling.
1 An Introduction to Relational Data Analysis (Normalisation)
Relational Data Analysis II. Plan Introduction Structured Methods –Data Flow Modelling –Data Modelling –Relational Data Analysis Feasibility Maintenance.
Project and Data Management Software
The Relational Database Model CST272. Return Creating the Unnormalized Table n List the fields n Select a primary key – The field (or concatenation of.
The Teacher Computing Database Design CP4 Revision.
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)
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.
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Module Title? DBMS Normalization. Module Title? DBMS Normalization  Normalization is the process of removing redundant data from tables in order to improve.
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Concepts of Database Management Sixth Edition Chapter 5 Database Design 1: Normalization.
A Normalisation Example Mark Kelly McKinnon Secondary College Vceit.com Based on work by Robert Timmer-Arends.
Normalisation Mia’s Sandwich Shop The Process Explained.
Database Design (Normalizations) DCO11310 Database Systems and Design By Rose Chang.
University of Sunderland COMM2Q Unit 2 COMM2Q Lecture 2 HIS Application Building.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Module Coordinator Tan Szu Tak School of Information and Communication Technology, Politeknik Brunei Semester
CORE 2: Information systems and Databases NORMALISING DATABASES.
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.
Slide 1 Chapter 03 The Relational Model and Normalization.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
1 5 Chapter 5 Database Design 1: Some Normalization Examples Spring 2006.
©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.
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
Concepts of Database Management Seventh Edition Chapter 5 Database Design 1: Normalization.
Database Terms t DBMS –Database Management System. A software used to organise, analyse, store, retrieve, and edit information. –e.g., Visual FoxPro, Access.
Postgresql East Philadelphia, PA Databases – A Historical Perspective.
Databases Database Normalisation. Learning Objectives Design simple relational databases to the third normal form (3NF).
IT-501 Database Management Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
INFS 6220 Systems Analysis & Design Transactional DBs vs. Data Warehouses.
Logical Database Design and Relational Data Model Muhammad Nasir
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.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
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.
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.
Flat file and relational databases Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse.
Intro to MIS – MGS351 Relational Database Design
SEEM3430: Information Systems Analysis and Design
Do it now – PAGE 13 You will find your do it now task in your workbook – look for the start button! Thursday, 20 September 2018.
Examples of normalization
Normalization and Databases
Examples of normalization
Database Normalisation
BTEC ICT – Unit 18 With Mr Griffiths.
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Presentation transcript:

Normalisation Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.

Anderson Garden Centre - Order Order Number : 1235 Cust. No : JA007 Cust. Name : Jim Anderson Date : 17-May-2008 Product Description Quantity Unit No Price 3785 Wheel Barrow 1 £ Watering Can 5 £ Garden Shed 1 £ This slide shows one of the garden centre’s orders. What attribute would you select to be a unique identifier? Is there any information that repeats?

Unnormalised Form UNF ORDER #Order No Cust No Cust Name Date #Product No Description Quantity Unit Price Order number has been chosen as the unique identifier. A unique identifier for the repeated group has been chosen and the repeated data italicised. The repeated data should now be removed into a separate relation and original key added to maintain identity. Primary Key Entity Name

First Normal Form UNF 1NF ORDER #Order No Cust. No Cust. Name Date #Product No Description ORDER ITEM Quantity #Order No Unit Price #Product No Description Quantity Price The original relation has been named as ORDER. The repetition of product information has been removed into a separate relation and the original key brought down. Remove non-key attributes and depending key into separate relation

Second Normal Form UNF 1NF 2NF ORDER ORDER ORDER #Order No #Order No #Order No Cust. No Cust. No Cust No Cust. Name Cust. Name Cust Name Date Date Date #Product No Description ORDER ITEM ORDER ITEM Quantity #Order No #Order No Unit Price #Product No #Product No Description Quantity Quantity Price PRODUCT #Product No Description Price Description & Price only depend on Product and are removed along with depending key into a separate relation Do all non-key attributes depend on the primary key or are there any inter data dependencies?

Third Normal Form UNF 1NF 2NF 3NF ORDER ORDER #Order No #Order No Cust No Cust No Cust No * Cust No Cust Name Cust Name Cust Name Date Date Date Date #Product No ORDER ITEM Description ORDER ITEM ORDER ITEM #Order No Quantity #Order No #Order No #Product No Unit Price #Product No #Product No Quantity Quantity Quantity Price PRODUCT PRODUCT #Product No #Product No Price Description Price CUSTOMER Cust No Cust Name Customer name depends on Customer No. Customer No remains in the Order relation as a foreign key linking to the primary key of the new relation, CUSTOMER