Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Management Information Systems, Sixth Edition
Accounting System Design
Relational Databases Chapter 4.
Modeling the Data: Conceptual and Logical Data Modeling
Chapter 7 Using Data Flow Diagrams
Chapter 17 Designing Databases
Organizing Data & Information
3-1 Chapter 3 Data and Knowledge Management
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
13 Kendall & Kendall Systems Analysis and Design, 9e
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Database Processing.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
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.
Systems analysis and design, 6th edition Dennis, wixom, and roth
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
Chapter 7 Using Data Flow Diagrams
1 California State University, Fullerton Chapter 7 Information System Data Management.
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.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Concepts and Terminology Introduction to Database.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
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.
Designing Databases Systems Analysis and Design, 7e Kendall & Kendall 13 © 2008 Pearson Prentice Hall.
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.
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.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
1 Technology in Action Chapter 11 Behind the Scenes: Databases and Information Systems Copyright © 2010 Pearson Education, Inc. Publishing as Prentice.
Relational Theory and Design
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
+ Relational Model IST210 Class Lecture. + Premiere Products A new company that is going to sells random merchandise via sales representatives You have.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lection №4 Development of the Relational Databases.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
Logical Database Design and 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.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Designing Databases Systems Analysis and Design, 8e Kendall & Kendall 13.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 12 Designing.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Chapter 4 Relational Databases
Basic Concepts in Data Management
MANAGING DATA RESOURCES
Chapter 17 Designing Databases
Systems Analysis and Design, 7e Kendall & Kendall
Presentation transcript:

Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition

Kendall & Kendall © 2005 Pearson Prentice Hall 13-2 Major Topics Files Databases Normalization Key design Using the database Data warehouses Data mining

Kendall & Kendall © 2005 Pearson Prentice Hall 13-3 Data Storage Design Objectives The objectives in the design of data storage organization are: The data must be available when the user wants to use it. The data must have integrity. It must be accurate and consistent. Efficient storage of data as well as efficient updating and retrieval.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-4 Data Storage Design Objectives The objectives in the design of data storage organization are (continued): The information retrieval be purposeful. The information obtained from the stored data must be in an integrated form to be useful for: Managing. Planning. Controlling. Decision making.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-5 Approaches to Data Storage There are two approaches to the storage of data in a computer system: Store the data in individual files each unique to a particular application. Storage of data in a computer-based system involves building a database. A database is a formally defined and centrally controlled store of data intended for use in many different applications.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-6 Files A file can be designed and built quite rapidly, and the concerns for data availability and security are minimized. Analysts can choose an appropriate file structure according to the required processing speed of the particular application system.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-7 Objectives of Effective Databases The effectiveness objectives of the database include: Ensuring that data can be shared among users for a variety of applications. Maintaining data that are both accurate and consistent. Ensuring all data required for current and future applications will be readily available.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-8 Objectives of Effective Databases The effectiveness objectives of the database include (continued): Allowing the database to evolve and the needs of the users to grow. Allowing users to construct their personal view of the data without concern for the way the data are physically stored.

Kendall & Kendall © 2005 Pearson Prentice Hall 13-9 Metadata Metadata is the information that describes data in the file or database. Used to help users understand the form and structure of the data

Kendall & Kendall © 2005 Pearson Prentice Hall Reality, Data, and Metadata

Kendall & Kendall © 2005 Pearson Prentice Hall Entity-Relationship Concepts Entities are objects or events for which data is collected and stored. An entity subtype represents data about an entity that may not be found on every record. Relationships are associations between entities.

Kendall & Kendall © 2005 Pearson Prentice Hall Entities A distinct collection of data for one person, place, thing, or event.

Kendall & Kendall © 2005 Pearson Prentice Hall Entity Subtype An entity subtype is a special one-to-one relationship used to represent additional attributes, which may not be present on every record of the first entity. This eliminates null fields on the primary database. For example, a company that has preferred customers, or student interns may have special field.

Kendall & Kendall © 2005 Pearson Prentice Hall Associative Entity Associative Entity - links two entities An associative entity can only exist between two entities

Kendall & Kendall © 2005 Pearson Prentice Hall Attributive Entity An attributive Entity - describes attributes, especially repeating elements.

Kendall & Kendall © 2005 Pearson Prentice Hall Entity-Relationship Diagram Symbols

Kendall & Kendall © 2005 Pearson Prentice Hall Relationships Relationships may be: One-to-one. One-to-many. Many-to-many. A single vertical line represents one. A circle represents zero or none. A crows foot represents many.

Kendall & Kendall © 2005 Pearson Prentice Hall Relationships

Kendall & Kendall © 2005 Pearson Prentice Hall Self-Join A self-join is when a record has a relationship with another record on the same file.

Kendall & Kendall © 2005 Pearson Prentice Hall Entity-Relationship Diagram Example

Kendall & Kendall © 2005 Pearson Prentice Hall Attributes, Records, and Keys Attributes are a characteristic of an entity, sometimes called a data item. Records are a collection of data items that have something in common. Keys are data items in a record used to identify the record.

Kendall & Kendall © 2005 Pearson Prentice Hall Key Types Key types are: Primary key, unique for the record. Secondary key, a key which may not be unique, used to select a group of records. Concatenated key, a combination of two or more data items for the key. Foreign key, a data item in one record that is the key of another record.

Kendall & Kendall © 2005 Pearson Prentice Hall Files A file contains groups of records used to provide information for operations, planning, management, and decision making. Files can be used for storing data for an indefinite period of time, or they can be used to store data temporarily for a specific purpose.

Kendall & Kendall © 2005 Pearson Prentice Hall File Types Types of files available are: Master file. Table file. Transaction file. Work file. Report file.

Kendall & Kendall © 2005 Pearson Prentice Hall Master and Transaction Files Master files Have large records Contain all pertinent information about an entity Transaction records Are short records Contain information used to update master files

Kendall & Kendall © 2005 Pearson Prentice Hall File Organization The different organizational structures for file design are: Sequential organization. Linked lists. Hashed file organization.

Kendall & Kendall © 2005 Pearson Prentice Hall Databases A database is intended to be shared by many users. There are three structures for storing database files: Relational database structures. Hierarchical database structures (older). Network database structures (older).

Kendall & Kendall © 2005 Pearson Prentice Hall Logical and Physical Database Design

Kendall & Kendall © 2005 Pearson Prentice Hall Normalization Normalization is the transformation of complex user views and data to a set of smaller, stable, and easily maintainable data structures.

Kendall & Kendall © 2005 Pearson Prentice Hall Normalization (Continued) Normalization creates data that are stored only once on a file. The exception is key fields. The data structures are simpler and more stable. The data is more easily maintained.

Kendall & Kendall © 2005 Pearson Prentice Hall Three Steps of Data Normalization The three steps of data normalization are: Remove all repeating groups and identify the primary key. Ensure that all nonkey attributes are fully dependent on the primary key. Remove any transitive dependencies, attributes that are dependent on other nonkey attributes.

Kendall & Kendall © 2005 Pearson Prentice Hall Three Steps of Normalization

Kendall & Kendall © 2005 Pearson Prentice Hall Data Model Diagrams Data model diagrams are used to show relationships between attributes. An oval represents an attribute. A single arrow line represents one. A double arrow line represents many.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Model Example

Kendall & Kendall © 2005 Pearson Prentice Hall First Normal Form (1NF) Remove any repeating groups. All repeating groups are moved into a new table. Foreign keys are used to link the tables. When a relation contains no repeating groups, it is in the first normal form.

Kendall & Kendall © 2005 Pearson Prentice Hall Second Normal Form (2NF) Remove any partial dependencies. A partial dependency is when the data are only dependent on a part of a key field. A relation is created for the data that are only dependent on part of the key and another for data that are dependent on both parts.

Kendall & Kendall © 2005 Pearson Prentice Hall Third Normal Form (3NF) Remove any transitive dependencies. A transitive dependency is when a relation contains data that are not part of the entity. The problem with transitive dependencies is updating the data. A single data item may be present on many records.

Kendall & Kendall © 2005 Pearson Prentice Hall Entity-Relationship Diagram and Record Keys The entity-relationship diagram may be used to determine record keys. When the relationship is one-to-many, the primary key of the file at the one end of the relationship should be contained as a foreign key on the file at the many end of the relationship. A many-to-many relationship should be divided into two one-to-many relationships with an associative entity in the middle.

Kendall & Kendall © 2005 Pearson Prentice Hall Guidelines for Creating Master Files or Database Relations Guidelines for creating master files or database relations are: Each separate entity should have it's own master file or database relation. A specific, nonkey data field should exist on only one master file or relation. Each master file or relation should have programs to create, read, update, and delete records.

Kendall & Kendall © 2005 Pearson Prentice Hall Integrity Constraints There are three integrity constraints that help to ensure that the database contains accurate data: Entity integrity constraints, which govern the composition of primary keys. Referential integrity, which governs the denature of records in a one-to-many relationship. Domain integrity.

Kendall & Kendall © 2005 Pearson Prentice Hall Entity Integrity Entity integrity constraints are rules for primary keys: The primary key cannot have a null value. If the primary key is a composite key, none of the fields in the key can contain a null value.

Kendall & Kendall © 2005 Pearson Prentice Hall Referential Integrity Referential integrity governs the denature of records in a one-to-many relationship. Referential integrity means that all foreign keys in one table (the child table) must have a matching record in the parent table.

Kendall & Kendall © 2005 Pearson Prentice Hall Referential Integrity (Continued) Referential integrity includes: You cannot add a record without a matching foreign key record. You cannot change a primary key that has matching child table records. A child table has a foreign key for a different record. You cannot delete a record that has child records.

Kendall & Kendall © 2005 Pearson Prentice Hall Referential Integrity A restricted database updates or deletes a key only if there are no matching child records. A cascaded database will delete or update all child records when a parent record is deleted or changed. The parent triggers the changes.

Kendall & Kendall © 2005 Pearson Prentice Hall Domain Integrity Domain integrity defines rules that ensure that only valid data are stored on database records Domain integrity has two forms: Check constraints, which are defined at the table level. Rules, which are defined as separate objects and may be used within a number of fields.

Kendall & Kendall © 2005 Pearson Prentice Hall Retrieving and Presenting Database Data The guidelines to retrieve and present data are: Choose a relation from the database. Join two relations together. Project columns from the relation. Select rows from the relation. Derive new attributes. Index or sort rows. Calculate totals and performance measures. Present data.

Kendall & Kendall © 2005 Pearson Prentice Hall Denormalization Denormalization is the process of taking the logical data model and transforming it into an efficient physical model.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Warehouses Data warehouses are used to organize information for quick and effective queries.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Warehouses and Database Differences In the data warehouse, data are organized around major subjects. Data in the warehouse are stored as summarized rather than detailed raw data. Data in the data warehouse cover a much longer time frame than in a traditional transaction-oriented database.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Warehouses and Database Differences (Continued) Data warehouses are organized for fast queries. Data warehouses are usually optimized for answering complex queries, known as OLAP. Data warehouses allow for easy access via data-mining software called software.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Warehouses and Database Differences (Continued) Data warehouses include multiple databases that have been processed so that data are uniformly defined, containing what is referred to as “clean” data. Data warehouses usually contain data from outside sources.

Kendall & Kendall © 2005 Pearson Prentice Hall Online Analytic Processing (OLAP) Online analytic processing (OLAP) is meant to answer decision makers’ complex questions by defining a multidimensional database. Data mining, or knowledge data discovery (KDD), is the process of identifying patterns that a human is incapable of detecting.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Mining Decision Aids Data mining has a number of decision aids available, including: Statistical analysis. Decision trees. Neural networks. Intelligent agents. Fuzzy logic. Data visualization.

Kendall & Kendall © 2005 Pearson Prentice Hall Data Mining Patterns Data mining patterns that decision makers try to identify include: Associations, patterns that occur together. Sequences, patterns of actions that take place over a period of time. Clustering, patterns that develop among groups of people. Trends, the patterns that are noticed over a period of time.

Kendall & Kendall © 2005 Pearson Prentice Hall Web Based Databases and XML Web-based databases are used for sharing data. Extensible markup language (XML) is used to define data used primarily for business data exchange over the Web.