Chapter 9 View Design and Integration. © 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Outline Motivation for view design.

Slides:



Advertisements
Similar presentations
Chapter 6: Entity-Relationship Model (part I)
Advertisements

Entity-Relationship (ER) Modeling
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 12 View Design and Integration.
© Copyright 2011 John Wiley & Sons, Inc.
The Hierarchical Model
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 5 Understanding Entity Relationship Diagrams.
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter Chapter 13-2 Chapter 13 Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using Rea Creating Database Tables.
Chapter 8 Normalization. © 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Outline Modification anomalies Functional dependencies.
Databases Chapter Distinguish between the physical and logical view of data Describe how data is organized: characters, fields, records, tables,
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Working with Financial Statements Chapter Three.
12 CHAPTER DATABASES Databases are the key to accessing information throughout our lives. Used in hospitals, grocery stores, schools, department stores,
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
Agenda for Week 1/31 & 2/2 Learn about database design
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Introduction to Valuation: The Time Value of Money Chapter Five.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Understanding Entity Relationship Diagrams.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Developing Data Models for Business Databases.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 6 Database Design Using Entity- Relationship Models.
Lesson-19 Data Modeling and Analysis
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 Introduction to Database Development.
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 6 Developing Data Models for Business Databases.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Mapping ERM to relational database
Chapter 5: Modeling Systems Requirements: Events and Things
Modeling Systems Requirements: Events and Things.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
1 Chapter 2 Revision: Documentation DFD System FC.
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Chapter 7 Normalization. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Modification anomalies Functional dependencies.
Chapter 12 View Design and Integration. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Motivation for view design.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
Database Design, Application Development, and Administration, 5 th Edition Copyright © 2011 by Michael V. Mannino All rights reserved. Chapter 6 Developing.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
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.
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
McGraw-Hill/Irwin ©2003. The McGraw-Hill Companies. All Rights Reserved Chapter 18 The Integrated Gaps Model of Service Quality Closing the Customer Gap.
Database Design – Lecture 4 Conceptual Data Modeling.
CHAPTER 5 Data and Knowledge Management. CHAPTER OUTLINE 5.1 Managing Data 5.2 The Database Approach 5.3 Database Management Systems 5.4 Data Warehouses.
Databases Chapter Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Ch 05. Basic Symbols ( manino ). Cardinalities Cardinality Notation.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc., All Rights Reserved. Example 1-Ad A.
Chapter 5 Understanding Entity Relationship Diagrams.
Database Design, Application Development, and Administration, 6 th Edition Copyright © 2015 by Michael V. Mannino. All rights reserved. Chapter 5 Understanding.
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.
Database Design Chapters 17 and 18.
Systems Analysis and Design
View Design and Integration
Lecture on Data Modeling and Analysis
Databases and Structured Files: What is a database?
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
ACCOUNTING INFORMATION SYSTEMS
Entity-Relationship Diagram (ERD)
Presentation transcript:

Chapter 9 View Design and Integration

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Outline Motivation for view design and integration View design with forms View integration

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Why View Design and Integration? Database complexity reflects organizational complexity Time-consuming and labor-intensive process Collect requirements from different user groups Involves coordination among designer team

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Motivation for View Design and Integration As the “divide and conquer” strategy is used to manage complexity, View Design and Integration is an approach to managing complexity of the database design effort.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Overview of View Design and Integration

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin View Design with Forms Important source of database requirements Reverse the process described in the first part of the book Derive an ERD that is consistent with the form Five step procedure

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Sample Customer Order Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Form Analysis Create an ERD to represent a form ERD supports form and other anticipated processing ERD should be consistent with the form ERD is a view of the database

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Form Analysis Steps

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Step 1: Define Form Structure Construct a hierarchy that depicts the form structure. Most forms consist of a simple hierarchy where the main form is the parent and the subform is the child. Complex forms can have parallel subforms and more levels in the hierarchy.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Hierarchical Form Structure

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Step 2: Identify Entity Types Split each node in the hierarchical structure into one or more entity types. Make an entity type if the form field is a potential primary key and there are other associated fields in the form.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Entity Types for the Customer Order Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Step 3: Attach Attributes Attach attributes to the entity types identified in the previous step Group together fields that are associated with the primary keys found in Step 2 Form fields close together may belong in the same entity type

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Attributes Added to the Entity Types

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Step 4: Add Relationships Relationships involving the form entity type –Form entity type contains the form's primary key –Relationships between the form entity type and other entity types derived from the parent node: usually 1-M. –Add a relationship to connect the form entity type to an entity type in the child node Add relationships to connect entity types derived from the child node if not already connected

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Entity Relationship Diagram

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Step 5: Check Completeness and Consistency Check the ERD for consistency and completeness with the form structure. The ERD should contain minimum and maximum cardinalities for all relationships, a primary key for all entity types, and a name for all relationships.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Consistency Rules for Relationship Cardinalities 1.In at least one direction, the maximum cardinality should be one for relationships connecting entity types derived from the same node (parent or child). 2.In at least one direction, the maximum cardinality should be greater than one for relationships connecting entity types derived from nodes on different levels of the form hierarchy.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Analysis of M-Way Relationships using Forms Choice between M-way and binary relationships can be difficult. Data entry forms provide a context to understand M-way relationships. An M-way relationship may be needed if a form shows a data entry pattern involving three entity types.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Sample Project Purchasing Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin ERD for the Project Purchase Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Sample Purchasing Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin ERD for the Purchasing Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin View Integration Combine individual views into a complete database design Incremental and parallel integration approaches

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Incremental Approach

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Parallel Approach

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Integration Strategy

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Precedence Relationships Form A precedes form B if form A must be complete before form B Preceding forms typically provide data for subsequent forms Place forms with precedence relationships in the same view subset

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Precedence Example

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Resolving Synonyms and Homonyms Synonym: spelled differently but have the same meaning Homonym: same sound and often the same spelling but different meaning Forms provide a context to resolve Major part of standardizing a vocabulary

View Integration Examples

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Sample Invoice Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Incremental Integration Example The following 5 slides demonstrate the Incremental Integration process by integrating the Invoice Form with the ERD for Customer Order Form.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Form Hierarchy

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Identify entity types and attach attributes

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin List the form fields that match existing entity types Order No matches the Order entity type. Customer No, Customer Name, Address, City, State, and Zip match the Customer entity type. Product No, Description, and Unit Price match the Product entity type.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Analyze homonyms Revise the Customer entity type with two sets of address fields: billing address fields and shipping address fields. Add shipping address fields to the Invoice entity type. Create a new entity type (ShipAddress) with the shipping address fields.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Integrated ERD (incremental)

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Parallel Integration Example The difference between the parallel and incremental approaches is that integration occurs later in the parallel approach. For the parallel approach, ERDs for forms must be constructed before merging.

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin ERD for the Invoice Form

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Integrated ERD (Parallel)

© 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Summary View design and integration is an important skill for designing large databases. Manage complexity of large development efforts. The result of form analysis is an ERD that is a view of the database. Two approaches for View Integration, incremental and parallel.