Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.

Slides:



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

Normalisation.
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.
1 Class Agenda (04/03 and 04/08)  Review and discuss HW #8 answers  Present normalization process Enhance conceptual knowledge of database design. Improve.
Accounting System Design
Normalisation Ensuring data integrity in database design 1.
Data Modeling and Relational Database Design ISYS 650.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Modern Systems Analysis and Design Third Edition
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
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 Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
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
File and Database Design SYS364. Today’s Agenda WHTSA DBMS, RDBMS, SQL A place for everything and everything in its place. Entity Relationship Diagrams.
Chapter 4: Logical Database Design and the Relational Model (Part II)
Week 6 Lecture Normalization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Class Agenda (11/07 and 11/12)  Review HW #8 answers  Present normalization process Enhance conceptual knowledge of database design. Improve practical.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Avoiding Database Anomalies
Normalization. 2 Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification of various types of update anomalies.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Concepts of Database Management, Fifth Edition
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.
In this chapter, you learn about the following: ❑ Anomalies ❑ Dependency and determinants ❑ Normalization ❑ A layman’s method of understanding normalization.
1 CMPT 275 Phase: Design. Janice Regan, Map of design phase DESIGN HIGH LEVEL DESIGN Modularization User Interface Module Interfaces Data Persistance.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Data Models and Relational Databases Chapter 2. Learning Objectives Identify primary and foreign keys for each entity and relevant relationships in the.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
BIS 360 – Lecture Eight Ch. 12: Database Design and Normalization.
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.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Microsoft Access Intro Class 6 Relationships.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
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.
Normalization of Database Tables
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
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.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
DATA NORMALIZATION CS 260 Database Systems. Overview  Introduction  Anomalies  Functional dependence  Normal forms  1NF  2NF  3NF  BCNF  Denormalization.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Database Design Chapter 9 Part-2: Normalization 1.
IST Database Normalization Todd Bacastow IST 210.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
Lecture 4: Logical Database Design and the Relational Model 1.
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
Normalization ACSC 425 Database Management Systems.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
Logical Database Design and Relational Data Model Muhammad Nasir
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
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 Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Database Normalization.
Presentation transcript:

Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization

Accounting 6500 What is Normalization? The object of normalization is to arrive at an optimal database structure. This “optimal” structure will minimize redundancy in the database. As a result, the integrity of the information in the database will be protected as data are added, modified, and deleted.

Accounting 6500 Why Study Normalization? Effective use of relational database products such as MS Access, SQL Server, Oracle, Sybase, and Informix require knowledge of data structures. Relational systems require that data be properly normalized (i.e. redundancy removed). Normalization provides a method for trouble-shooting a database design.

Accounting 6500 What We Will Learn Today About Normalization How to recognize a poor data structure; How to determine why the data structure is incorrect; How to correct structural errors in the database.

Accounting 6500 Types of Database Relationships One-to-one (Customer ID# ---> Customer Name) One-to-many (Customer ---> Invoice) Many-to-many (Invoice > Products)

Accounting 6500 Example Invoice

Accounting 6500 Prior to Normalization

Accounting 6500 First Normal Form (1NF) There is a one-to-one relationship (correspondence) between the key and the non-key fields.

Accounting NF Violation (Table 1) INV# DATE CUST# CNAME ADDR. 1:1 CAT# DESC QTY PRICE 1:M

Accounting 6500 Table 1(a) Repeating Groups Removed

Accounting 6500 Table 2. Repeating Group File

Accounting 6500 Second Normal Form (2NF) The table satisfies 1NF and All non-key fields are dependent on the whole key. (Relevant only for tables with composite keys)

Accounting NF Violation (Table 2) INV# CAT# DESC QTY PRICE

Accounting 6500 Table 3. (For fields dependent only on CAT#)

Accounting 6500 Table 2(a) Partial Key Dependencies Removed

Accounting 6500 Table 1(a). Revisited (Check 3NF)

Accounting 6500 Third Normal Form The table satisfies 1NF and 2NF and Non-key fields are dependent only on the key.

Accounting 6500 Alternative Definition of Third Normal Form Each non-key field is dependent on the whole key and nothing but the key.

Accounting NF Violation (Table 1(a)) INV# DATE CUST# CNAME ADDR.

Accounting 6500 Table 4. Separate File for Customer Data

Accounting 6500 Table 1(b). Non-primary Key Dependencies Removed

Accounting 6500 The Database in 3NF

Accounting 6500 The Database in 3NF

Accounting 6500 Normalization in Class Exercise Customer#, fname, lname, phone, address,birthday, rental#, rental date, due date, video#, copy #, title, rating, Rental $ assume each video number has multiple copies and each rental $ is determined by video # Remember can rent more than one video at a time Put this information into 3rd normal form identifying primary keys and foreign keys

Accounting 6500 Practical Steps for getting tables into 3NF 1 Divide original table into tables that have related information 2 Select candidate key for each table 3 Analyze each table and check for a 1 NF (no repeating groups--no one to many relationships from key to any non-key attribute b 2 NF (1 NF & each non-key item dependent on whole key- -applies to composite key tables only c 3 NF (2 NF & remove all transitive dependencies--non- key field not determine any other non-key field 4 If have NF violations, fix by dividing out the offending fields into another table--divide and conquer. (May have to iteratively go through steps Connect tables with appropriate foreign keys