Database Design Chapter 7.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Introduction to Databases
Accounting System Design
Chapter Chapter 13-2 Chapter 13 Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using Rea Creating Database Tables.
Client/Server Databases and the Oracle 10g Relational Database
Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 3: Data Modeling
System Analysis and Design
Implementing an REA Model in a Relational Database
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Normalization of Database Tables
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
Chapter 3-1 Ch. 3 –Data Modeling Designing an efficient and effective database that meets users’ needs.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: Marianne Bradford, Ph.D. Bryant College.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Implementing an REA Model in a Relational Database
Advanced Accounting Information Systems Day 7 Database Modeling.
Chapter 4-1. Chapter 4-2 Chapter 4: Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using REA Creating Database Tables.
Database Systems Basic Data Management Concepts
+ Information Systems and Databases 2.2 Organisation.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
ACCOUNTING INFORMATION SYSTEMS
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
A Guide to SQL, Eighth Edition
Event-driven accounting information systems
Client/Server Databases and the Oracle 10g Relational Database
Information Systems Today: Managing in the Digital World
Implementing an REA Model in a Relational Database
DESIGNING DATABASE APPLICATIONS
Functional Dependencies
Modern Systems Analysis and Design Third Edition
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Implementing an REA Model in a Relational Database
Databases and Information Management
What is a Database and Why Use One?
Chapter 9 Designing Databases
Chapter 2 Database Environment Pearson Education © 2009.
Basic Concepts in Data Management
Accounting System Design
MANAGING DATA RESOURCES
Relational Database Model
Accounting System Design
Databases and Information Management
ACCOUNTING INFORMATION SYSTEMS
Systems Analysis and Design, 7e Kendall & Kendall
Databases and Information Management
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Database Design Chapter 7

Chapter 7: Database Design Introduction An Overview of Databases Steps in Developing a Database Using Resources, Events and Agents Approach Normalization

Introduction Uses of a modern AIS Systematically record data Provide convenient and useful formats Easy access to information

What is a Database? Collection of organized data Used by many different computer applications Manipulated by database management systems (DBMS)

Significance of a Database Critical information Volume Distribution Privacy Irreplaceable data Need for accuracy

Significance of a Database Internet uses Big Data Storing Data in Databases Data Hierarchy

Storing Data in Databases Data must be stored and organized systematically Three important concepts: Three important concepts Data hierarchy Record structures Database keys

Data Hierarchy Data organization in ascending order: Data field Record File Database

Record Structures Example Data fields in each record of a database table Structure is usually fixed Example

Database Keys Primary Key Foreign Keys Unique to each record Enable referencing of one or more records Matches primary key of related table

Records Combined Into Report

Additional Database Issues Administration Database Administrator Documentation Includes a variety of descriptions Structures, Contents, Security Features Data Dictionary Metadata

Data Dictionary Example

Additional Database Issues Data Integrity Data Integrity controls Designed by database developers Processing Accuracy and Completeness Transaction controls Ensures accurate transaction processing

Additional Database Issues Concurrency Concurrency controls Prevent multi-user access at same time Backup and Security Ability to recreate data Prevent unauthorized access View controls

Study Break #1 The part of the data hierarchy that represents one instance of an entity is a: Field Record File Database

Study Break #2 Within the context of databases, the term “concurrency” refers to the possibility that: A customer of one store might also be a customer of another store Two database users might want to access the same record at the same time A credit entry for a customer requires a debit entry for a matching account None of these

REA Model Resources Organization’s assets Events Activities associated with a business process Agents People associated with business activities

Steps in Developing Databases with REA Identify Business and Economic Events Identify Entities Identify Relationships Among Entities

Steps in Developing Databases with REA Create Entity-Relationship Diagrams Identify Attributes of Entities Convert E-R Diagrams into Database Tables

Identify Events and Entities Types of Events Economic Business Types of Database Entities Entities Agents Resources

Entity Examples

Identify Relationships Among Entities Types of Relationships Direct relationship Indirect relationship Cardinalities Nature of relationships among entities

Cardinality Relationships Notations One-to-one (1:1) One-to-many (1:N) Many-to-many (N:N) Purpose Occurrence of one entity Associated with occurrence of one event of another entity

Cardinality Relationships

Entity-Relationship Diagram Purpose Diagram entities Relationships among entities Structure Rectangles represent entities Connecting lines represent relationships

E-R Diagram Example

Relationship Tables Provide greater flexibility Need for Relationship Tables Linking tables with foreign keys Many-to-many relationships

Relationship Tables

Schematic of Database Tables

Study Break #3 In the REA model, the “A” stands for: Agents Additions Accounts Associations

Study Break #4 Which of these is not a cardinality between two database entries? One-to-one None-to-none One-to-many Many-to-many

Normalization Normalization Methodology ensuring attributes are stored in most appropriate tables Design promotes accuracy Avoids redundancy of data storage Levels First normal form Second normal form Third normal form

Unnormalized Data

First Normal Form In First Normal Form (1 NF) when: All data fields are singular Each attribute has one value Problems Data redundancy Insertion anomaly Deletion anomaly

First Normal Form Example

Second Normal Form In Second Normal Form (2 NF) when: It is in 1 NF All data items depend on primary record key Benefits More efficient design Eliminates data redundancy

Second Normal Form Example

Third Normal Form In Third Normal Form (3 NF) when: It is in 2 NF Does not contain transitive dependencies Data field A does not determine data field B Ultimate Goal Create database in 3 NF

Third Normal Form Example

Study Break #5 A database is in third normal form (3 NF) if it is second normal form and: All the data attributes in a record are well-defined All the data attributes in a record depend on the record key The data contains no transitive dependencies The data can be stored in two or more separate tables