E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities.

Slides:



Advertisements
Similar presentations
Normalisation.
Advertisements

Chapter 5 Normalization of Database Tables
Database Tables and Normalization
5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
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.
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?
Topic Database Normalisation S McKeever Advanced Databases 1.
Normalisation Ensuring data integrity in database design 1.
Normalization of Database Tables Special adaptation for INFS-3200
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.
CS263:Revision on Normalisation
Normalization of Database Tables
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
Microsoft Access 2002 By Ian Cole Lecturer in ICT.
Project and Data Management Software
NORMALIZATION N. HARIKA (CSC).
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 29 – 04 – 2005.
Week 6 Lecture Normalization
DBSQL 4-1 Copyright © Genetic Computer School 2009 Chapter 4 Database Design.
Lecture 12 Inst: Haya Sammaneh
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
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.
Concepts of Database Management Sixth Edition Chapter 5 Database Design 1: Normalization.
Concepts of Database Management, Fifth Edition
The Relational Model and Normalization R. Nakatsu.
Normalization Are we Normal. Normalization Normalization is the process of converting complex data structures into simple, stable data structures It also.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
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.
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
5. Database Design Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
M1G Introduction to Database Development 4. Improving the database design.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
Database Design – Lecture 8
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.
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities.
Database Systems, 8 th Edition Improving the Design Table structures cleaned up to eliminate initial partial and transitive dependencies Normalization.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Microsoft Access 2010 Chapter 11 Database Design.
Week 4 Lecture Part 1 of 3 Normalization of Database Tables Samuel ConnSamuel Conn, Asst. Professor.
5 1 Normalization of Database Tables. 5 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures to minimize.
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 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.
Revised: 2 April 2004 Fred Swartz
Databases – Exam questions
SEEM3430: Information Systems Analysis and Design
Normalization Karolina muszyńska
A SIMPLE GUIDE TO FIVE NORMAL FORMS (See the next slide for required reading) Prof. Ghandeharizadeh 2018/11/14.
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Appendix A Data Modeling MANAGEMENT INFORMATION SYSTEMS 8/E
Presentation transcript:

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 1 Database Models Ver: 1.0 E-Commerce Databases Database models

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 2 Database Models Ver: 1.0 Relational Databases Entities (e.g. Customer, Products...) Relationships (e.g. a Customer orders many Products) Entity Relationship Diagram (ERD) Normal Forms (to exclude duplicity of data and resulting update problems)

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 3 Database Models Ver: 1.0 Entity Type / Table Tables Attributes Records

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 4 Database Models Ver: 1.0 Primary Keys Relationships Primary Key cus_id

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 5 Database Models Ver: 1.0 Relationships Customer Product confirms sales n:m Customer Product confirms sales 1:n sold n:1 Relationships become Tables

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 6 Database Models Ver: 1.0 Relationships Customer Table Sales Table Product Table

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 7 Database Models Ver: 1.0 Entity Relationship Diagram Illustrating entity types and their relationships Input for the database design team which tables to create Customer Product confirms sales 1:n sold n:1

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 8 Database Models Ver: 1.0 Redundancy Elimination First Normal Form –First Normal Form eliminates repeating groups by putting each into a separate table and connecting them with a one-to-many relationship. Second Normal Form –Second Normal Form eliminates functional dependencies on a partial key by putting the fields in a separate table from those that are dependent on the whole key. Third Normal Form –Third Normal Form eliminates functional dependencies on non-key fields by putting them in a separate table. At this stage, all non-key fields are dependent on the key, the whole key and nothing but the key. -> Data are normalised !

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 9 Database Models Ver: 1.0 1Nf to 2NF Example Separate into different entities/tables Check that no attributes are dependent on key-subset (e.g. warehouse-address being dependent on key warehouse)

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 10 Database Models Ver: 1.0 2NF to 3NF Example Identify non-key fields which would be keys of a separate table Separate out these tables

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 11 Database Models Ver: 1.0 4NF / 5NF Employee Language Competence 1:nn:1 Skill 1:n employee_id, skill_id, lang_id Speaking Capability

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 12 Database Models Ver: 1.0 Exercise 1 Master Example 1 Design the Entity Realtionship Diagram for a typical customer and product sales situation including stock control Identify the primary keys, the relationships, and the attributes required within each table Check against the 3NF Do this work in about 1 hour

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 13 Database Models Ver: 1.0 Exercise 2 Master Example 2 Design the Entity Realtionship Diagram for a typical e-newspaper ordering site with customers, newspapers to select, newspapers to renew and to administer sales and payments Identify the primary keys, the relationships, and the attributes required within each table Check against the 3NF Do this work in about 1 hour

E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP ) is carried out with the financial support of the Commssion of the European Communities under the Leonardo da Vinci Programme 14 Database Models Ver: 1.0 References F. Codd, "A Relational Model of Data for Large Shared Data Banks", Comm. ACM 13 (6), June 1970, pp The original paper introducing the relational data model. F. Codd, "Normalized Data Base Structure: A Brief Tutorial", ACM SIGFIDET Workshop on Data Description, Access, and Control, Nov , 1971, San Diego, California, E.F. Codd and A.L. Dean (eds.). An early tutorial on the relational model and normalization. E.F. Codd, "Further Normalization of the Data Base Relational Model", R. Rustin (ed.), Data Base Systems (Courant Computer Science Symposia 6), Prentice-Hall, Also IBM Research Report RJ909. The first formal treatment of second and third normal forms. C.J. Date, An Introduction to Database Systems (third edition), Addison-Wesley, An excellent introduction to database systems, with emphasis on the relational. R. Fagin, "Multivalued Dependencies and a New Normal Form for Relational Databases", ACM Transactions on Database Systems 2 (3), Sept Also IBM Research Report RJ1812. The introduction of fourth normal form. R. Fagin, "Normal Forms and Relational Database Operators", ACM SIGMOD International Conference on Management of Data, May 31-June 1, 1979, Boston, Mass. Also IBM Research Report RJ2471, Feb The introduction of fifth normal form. W. Kent, "A Primer of Normal Forms", IBM Technical Report TR02.600, Dec An early, formal tutorial on first, second, and third normal forms. T.-W. Ling, F.W. Tompa, and T. Kameda, "An Improved Third Normal Form for Relational Databases", ACM Transactions on Database Systems, 6(2), June 1981, One of the first treatments of inter-relational dependencies.