Principles of Database Design, Conclusions MBAA 609 R. Nakatsu.

Slides:



Advertisements
Similar presentations
C6 Databases.
Advertisements

5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
By: Mr Hashem Alaidaros MIS 211 Lecture 4 Title: Data Base Management System.
Managing Data Resources
Chapter 3 Database Management
Database Management: Getting Data Together Chapter 14.
Transaction Management and Concurrency Control
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
Chapter 17 Designing Databases
The Relational Database Model:
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Database – Part 2 Dr. V.T. Raja Oregon State University.
Chapter 5 Normalization of Database Tables
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
Transaction Management and Concurrency Control
DATA RESOURCE MANAGEMENT.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
An Introduction to Database Management Systems R. Nakatsu.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Databases & Data Warehouses Chapter 3 Database Processing.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Chapter 4: Organizing and Manipulating the Data in Databases
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
Chapters 17 & 18 Physical Database Design Methodology.
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
Database and Data Warehouse Module B: Designing and Building a Relational Database Chapter 3.
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 Adapted from Pearson Prentice Hall Adapted form James A. Senn’s Information Technology, 3 rd Edition Chapter 7 Enterprise Databases and Data Warehouses.
7.1 Managing Data Resources Chapter 7 Essentials of Management Information Systems, 6e Chapter 7 Managing Data Resources © 2005 by Prentice Hall.
The Relational Model and Normalization R. Nakatsu.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
Principles of Database Design, Conclusions AIMS 2710 R. Nakatsu.
Technology In Action Chapter 11 1 Databases and… Databases and their uses Database components Types of databases Database management systems Relational.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
ITGS Databases.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Data resource management
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Database and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
Foundations of Business Intelligence: Databases and Information Management.
Flat Files Relational Databases
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
1 Advanced Database Concepts Transaction Management and Concurrency Control.
18 September 2008CIS 340 # 1 Last Covered (almost)(almost) Variety of middleware mechanisms Gain? Enable n-tier architectures while not necessarily using.
Chapter 13 Managing Transactions and Concurrency Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Managing Data Resources File Organization and databases for business information systems.
What is a database? (a supplement, not a substitute for Chapter 1…) some slides copied/modified from text Collection of Data? Data vs. information Example:
Normalization.
Transaction Management and Concurrency Control
Database Fundamentals
Chapter 17 Designing Databases
Presentation transcript:

Principles of Database Design, Conclusions MBAA 609 R. Nakatsu

Principles of Database Design Normalization is a process that assigns attributes (fields) to tables such that data redundancies are eliminated or reduced. Four Rules of Thumb: 1. Single Themes: Break up a large table into separate themes, or subjects. 2. Field Uniqueness: Each field in a table should represent a unique type of information (e.g., break up complex fields, and eliminate repeating groups).

Principles of Normalization, Continued 3. Primary Keys: Each table must have a unique identifier, or primary key, that is made up of one or more fields in the table. 4. Field Independence: You must be able to make a change to the data in any field (other than a field in the primary key) without affecting the data in any other field.

Rule 4: Field Independence Employee (Employee Number, Last Name, First Name, Job Class, Hourly Rate) In this example, Hourly Rate is dependent on Job Class. Employee NumberLast NameFirst NameJob ClassHourly Rate 11SmithJohnMechanic20 12JonesSusanTechnician18 13McKayBobMechanic20 14OwensPaulaClerk15 ChangSteveMechanic20 16SarandonSarahMechanic20

Solution: Create Two Tables Employee (Employee Number, Last Name, First Name, Job Class ID) Job Class ID is the link to the Job Class table. Employee NumberLast NameFirst NameJob Class ID 11SmithJohn2 12JonesSusan3 13McKayBob2 14OwensPaula1 15ChangSteve2 16SarandonSarah2

Job Class (Job Class ID, Job Class, Hourly Rate) There are no more field dependencies!

Integrity of a Database It is important that the data in a database is correct and consistent. Data integrity problems can occur due to: n incorrect data entry n data redundancy n poor database design

Ways to Maintain Data Integrity n Entity Integrity (primary key must be unique and must not be null) n Referential Integrity (see previous slide) n Field types (e.g., text, numeric, date, yes/no) n Input masks (e.g., ISBN number, dates) n Field validation rules (What are some examples?) n Good design of input screens (user interfaces) n Check digits

User Interface Design © 2000 Prentice Hall

Check Digit Example  Add a check digit to validate a clerk’s data entry.  The check digit is determined by some mathematical algorithm. Example: Multiply the first digit by 2; multiply the second digit by 3; multiply the third by 4; add the results; divide by 10 and take the remainder. 127 yields (1*2 + 2*3 + 7*4) / 10 = 36 / 10 for a check digit of 6.

Concurrency Control Concurrency control is the management of concurrent transaction execution. Why is it important? The simultaneous execution of transactions over a shared database may create several data- integrity and consistency problems.

Lost Updates: An Example Note that the first transaction has not been permanently recorded when the second transaction is executed.

Concurrency Control with Locking A lock guarantees exclusive use of a data item to a current transaction. In the previous example, transaction T2 will not have access to the data item that is currently used by transaction T1. The lock is released when the transaction T1 is completed.

Data Warehouse n support OLAP (online analytical processing) n support data mining (data in a data warehouse are analyzed to reveal hidden patterns and trends in historical business activity) stores data that have been extracted from the various operational, external, and other databases of an organization Data warehouses...

Data Warehouse

Recap n Why do we need a database? n What is a database? n What are the main functions of a DBMS? n Entity-Relationship Modeling n Linking two tables: 1:1, 1:M, and M:N n Four principles of database design n Data Integrity n Concurrency Control n Data Warehouses