WJEC Applied ICT Databases – Attributes & Entities Normalisation It is important in Database Design to make sure that the correct attributes are grouped.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

Relational Database Systems Higher Information Systems.
Normalisation.
Relational Database Systems Higher Information Systems.
Relational Database Systems Higher Information Systems.
Section 11 : Normalisation - A Worked Example
Normalisation Ensuring data integrity in database design 1.
Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.
Class Presentation: Normal Form By Wen Ying Gao CS157A Section 2 October 20, 2005.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Entity Relationship Diagrams
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.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Database Normalization CP3410 Daryle Niedermayer, I.S.P., PMP.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
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.
Database Management Systems
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Normalisation Mia’s Sandwich Shop The Process Explained.
The Relational Model and Normalization R. Nakatsu.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
CORE 2: Information systems and Databases NORMALISING DATABASES.
BTEC National Extended Diploma1 IT Systems Analysis and Design Entity Relationship Diagrams.
Normalisation. NoKats Dog Club A club formed since Keeps records of members and their dogs on index cards. Cards are managed by the secretary and.
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.
Unit 4 Normalisationand Relational Database Management Systems.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Database Design Normalisation. Last Session Looked at: –What databases were –Where they are used –How they are used.
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.
Creating Databases Data normalization. Integrity and Robustness. Work session. Homework: Prepare short presentation on enhancement projects. Continue working.
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS2502: Data Analytics Relational Data Modeling
Children’s swimming lessons at the local swimming pool:
The Normal Forms 3NF and BCNF
Data modeling Process. Copyright © CIST 2 Definition What is data modeling? –Identify the real world data that must be stored on the database –Design.
Sample Table Standard Notation Entity name in uppercase
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
MIS2502: Data Analytics Relational Data Modeling David Schuff
Normalisation 1NF to 3NF Ashima Wadhwa. In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third.
Databases Database Normalisation. Learning Objectives Design simple relational databases to the third normal form (3NF).
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.
©G. Millbery 2005Relational and Online Database Management SystemsSlide 1 Module Relational and Online Database Management Systems Normalisation.
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?
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.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
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.
Revised: 2 April 2004 Fred Swartz
Database Normalization
Databases A brief introduction….
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.
Entity relationship diagrams
Database Design ERD and Normalisation
Normalization and Databases
IST 318 Database Administration
Database Normalisation
BTEC ICT – Unit 18 With Mr Griffiths.
Presentation transcript:

WJEC Applied ICT Databases – Attributes & Entities Normalisation It is important in Database Design to make sure that the correct attributes are grouped into the correct tables. Normalisation is a process that allows us to do this. This reduces the duplication of data and helps stop inconsistencies. Normalisation is done in three phases – 1NF, 2NF and 3NF. These are as follows 1)1NF – Atomic Data Test 2)2NF – Partial key dependence test 3)3NF – Non-key dependence test

WJEC Applied ICT Databases – Attributes & Entities Normalisation Consider this table: There are multiple entries for some of the attributes. How much space should we leave for these. These attributes are said to be “repeating groups” or non- atomic data. Lets remove them to another table. Order Number Customer ID Delivery Address Address Order Date Item Code DescOrder Quantity Unit Price BLF1Fred Bloggs 1 High Street, Any town k 01/05/091234Ring Binder Divider Stapler SMJ2Joe Smith 7, The Lane, Anytown k 03/05/099684Scissors Stapler42.99

WJEC Applied ICT Databases – Attributes & Entities Normalisation Table 1 in 1NF Order Number Customer ID Delivery Address Address Order Date BLF1Fred Bloggs 1 High Street, Any town k 01/05/ SMJ2Joe Smith 7, The Lane, Anytown k 03/05/09

WJEC Applied ICT Databases – Attributes & Entities Normalisation Table 2 in 1NF Order number and Item code make a composite key. OrderNumberItem CodeDescOrder Quantity Unit Price Ring Binder Divider Stapler Scissors Stapler42.99

WJEC Applied ICT Databases – Attributes & Entities Normalisation Which of these tables are NOT in first normal form?

WJEC Applied ICT Databases – Attributes & Entities Normalisation Moving to 2NF The item details are only dependant on the item code which is part of the key and not the OrderNumber as well. This also means we only store details of the items when we order them. To make it 2NF all the attributes must be dependant on the full key. We create another table for the items. OrderNumberItem CodeDescOrder Quantity Unit Price Ring Binder Divider Stapler Scissors Stapler42.99

WJEC Applied ICT Databases – Attributes & Entities Normalisation Table 1 in 2NF Order Number Customer ID Delivery Address Address Order Date BLF1Fred Bloggs 1 High Street, Any town k 01/05/ SMJ2Joe Smith 7, The Lane, Anytown k 03/05/09

WJEC Applied ICT Databases – Attributes & Entities Normalisation Table 2 in 2NF OrderNumberItem CodeOrder Quantity

WJEC Applied ICT Databases – Attributes & Entities Normalisation Table 3 in 2NF Item CodeDescUnit Price 1234Ring Binder Divider Stapler Scissors Stapler2.99

WJEC Applied ICT Databases – Attributes & Entities Normalisation Moving to 3NF If we go back to first table - Order Number Customer ID Delivery Address Address Order Date BLF1Fred Bloggs 1 High Street, Any town k 01/05/ SMJ2Joe Smith 7, The Lane, Anytown k 03/05/09 The primary key here is the OrderNumber. However the Delivery Address and Address is dependant on the Customer ID. So this table is not in Third Normal Form (3NF) because it fails the non- key dependance test. So we must create a new table for the customer information.

WJEC Applied ICT Databases – Attributes & Entities Normalisation Let us have a look at our 4 tables now in 3NF. Table : OnlineOrder Order Number Customer ID Order Date BLF101/05/ SMJ203/05/09 Table: Customer Customer ID Delivery Address Address BLF1Fred Bloggs 1 High Street, Any town T.co.uk SMJ2Joe Smith 7, The Lane, Anytown T.co.uk

WJEC Applied ICT Databases – Attributes & Entities Normalisation Let us have a look at our 4 tables now in 3NF. Table: ItemOrder OrderNumberItem CodeOrder Quantity Table: Item Item CodeDescUnit Price 1234Ring Binder Divider Stapler Scissors Stapler2.99

WJEC Applied ICT Databases – Attributes & Entities Normalisation Tasks 1)Can you write the new tables in Database notation? 2)Can you create an Entity Relationship Diagram for the new Customer Order System? 3)Have a go at the scenarios below. Can you put the following flat files into 3NF. CAR (Make, Model, Name of part, Price, Supplier name, supplier telephone number, Supplier Address)  RACES (Race name, venue, start point, end point, miles, runner name, time to finish, club name, club address, club telephone number) Runners only belong to one club.