Create Databases for Web Applications Database normalization. Classwork/Homework: determine teams for basic projects explain and enhance assignment.

Slides:



Advertisements
Similar presentations
Copyright: ©2005 by Elsevier Inc. All rights reserved. 1 Author: Graeme C. Simsion and Graham C. Witt Chapter 3 The Entity-Relationship Approach.
Advertisements

Normalization What is it?
Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
Modeling the Data: Conceptual and Logical Data Modeling
Normalization of Database Tables
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.
Lesson-20 Data Modeling and Analysis(2)
Normalization of Database Tables
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Modern Systems Analysis and Design Third Edition
Chapter 5 Normalization of Database Tables
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.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Chapter 5 Normalization of Database Tables
Creating databases for web applications
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Normalization. Database Normalization Database normalization is the process of removing redundant data from your tables in to improve storage efficiency,
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Concepts and Terminology Introduction to Database.
Avoiding Database Anomalies
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.
Concepts of Database Management Sixth Edition Chapter 5 Database Design 1: Normalization.
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Normalisation Mia’s Sandwich Shop The Process Explained.
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
1 DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
Database Normalization Lynne Weldon July 17, 2000.
Normalization of Data  Relatively easy examples from –Discussion –1 st Normal Form –2 nd Normal Form –3 rd Normal Form.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
10/3/2012ISC329 Isabelle Bichindaritz1 Logical Design.
CORE 2: Information systems and Databases NORMALISING DATABASES.
M1G Introduction to Database Development 4. Improving the database design.
Normalization of Database Tables
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.
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.
Final Exam Review Geb Thomas. Information Systems Applications.
Chapter 2 Relational Database Design and Normalization August
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.
Creating Databases One-way encryption. Passwords. Security issues. Data normalization. Integrity and Robustness. Homework: Finalize teams & projects. Making.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Logical Database Design and the Relational Model.
Microsoft Access 2010 Chapter 11 Database Design.
Lecture 4: Logical Database Design and the Relational Model 1.
Logical Design 12/10/2009GAK1. Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
Normalization ACSC 425 Database Management Systems.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Database Planning Database Design Normalization.
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.
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.
IST 220 – Intro to Databases
Revised: 2 April 2004 Fred Swartz
SEEM3430: Information Systems Analysis and Design
Data normalization. Integrity and Robustness.
MIS 322 – Enterprise Business Process Analysis
Modern Systems Analysis and Design Third Edition
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Logical Data Modeling – Normalization
Presentation transcript:

Create Databases for Web Applications Database normalization. Classwork/Homework: determine teams for basic projects explain and enhance assignment

What is normalization? Data analysis is a process that prepares a data model for implementation as a simple, non- redundant, flexible, and adaptable database. The specific technique is called normalization. Normalization is a data analysis technique that organizes data attributes such that they are grouped to form non-redundant, stable, flexible, and adaptive entities.

Goals of normalization Have well-defined tables—at most one value for each field Store each item of information exactly one place so if/when it changes, only have to change one place Don't store items that can be calculated so making changes is simplified.

Process of defining database May start with the desired end products (sometimes called artifacts) –Reports –Forms May be from original, possibly even non- automated version of application May be from combination of application. Goal is to produce single database that serves multiple uses.

Normalization process First step is to do what is necessary to get each entity into 1 st normal form: –An entity is in first normal form (1NF) if there are no attributes that can have more than one value for a single instance of the entity. Any attributes that can have multiple values actually describe a separate entity, possibly an entity and relationship. –Common situation is so-called multiple values, such as distinct items in an order (distinct beneficiaries, game- machines) –Action is to create new entity

Modifying model to 1 st NF Many items (titles) Associative entity: Use combination of keys for new (concatenated) key

Moving to 2 nd NF If you do not have any concatenated keys, no work is needed. Model is already in 2 nd NF. If you do have any concatenated (combination) keys, you need to examine these entities. –An entity is in second normal form (2NF) if it is already in 1NF and if the values of all nonprimary key attributes are dependent on the full primary key—not just part of it. Any nonkey attributes that are dependent on only part of the primary key should be moved to any entity where that partial key is actually the full key. This may require creating a new entity and relationship on the model.

Moving to 2 nd NF Some attributes relate to the product itself, not the fact that the product is part of this order. Remove these attributes.

Moving to 3 rd NF Make sure that all non-primary attributes depend just on the key, not, for example, on another attribute. –An entity is in third normal form (3NF) if it is already in 2NF and if the values of its nonprimary key attributes are not dependent on any other non-primary key attributes. Any nonkey attributes that are dependent on other nonkey attributes must be moved or deleted. Again, new entities and relationships may have to be added to the data model. –Typical example is something that can be calculated.

Example of move to 3 rd NF

Normalization …. is a process. It is [somewhat] mechanical. There is chance that your model may be in 1 st, 2 nd, or even 3 rd without action or much action on your part, but it is good to go through the process. Note: Some may argue for certain redundancies, for example, storing a calculated value. Why or why not?

Classwork / Homework Determine teams to explain and enhance and explain sample projects –HTML JavaScript Orders Trivia quiz Songs with features –Flash ActionScript Grid design Video clip archive