Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design: Activity Diagrams
Advertisements

Relational Database and Data Modeling
Chapter 7 Structuring System Process Requirements
Object-Oriented Analysis and Design: Object Modeling – Class Diagrams
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 2005 by Prentice Hall Chapter 3a Database Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Data Storage Formats Files Databases
Designing Databases Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Modern Systems Analysis and Design Third Edition
Chapter 9 Designing Databases
Chapter 9 Designing Databases
Information Technology in Organizations
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 8 Structuring System Data Requirements
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 1 The Systems Development Environment Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter 7 Structuring System Process Requirements Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
10-1 Chapter 10 Designing Databases Modern Systems Analysis and Design Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
Chapter 8 Structuring System Data Requirements
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 8 Structuring System Data Requirements
Chapter 1 The Systems Development Environment Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 2 Slide 1 Chapter 10 Designing Databases.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 3 Appendix Object-Oriented Analysis and Design: Project Management Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George.
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
10/3/2012ISC329 Isabelle Bichindaritz1 Logical Design.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 10 Designing Databases Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 7 Appendix C Object-Oriented Analysis and Design: Sequence Diagrams Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Chapter 9 Structuring System Data Requirements Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 9 Designing Databases.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
9-1 © Prentice Hall, 2007 Topic 9: Physical Database Design Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Logical Design 12/10/2009GAK1. Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Chapter 7 Structuring System Process Requirements Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 12 Designing.
Cis339 Modern Systems Analysis and Design Fifth Edition Chapter 10 Designing Databases 10.1.
Logical Database Design and the Rational Model
Chapter 4: Logical Database Design and the Relational Model
Chapter 9 Designing Databases
MIS 322 – Enterprise Business Process Analysis
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases
Chapter 9 Designing Databases
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Chapter 9 Designing Databases
Chapter 12 Designing Databases
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Chapter 10 Designing Databases
Chapter 9 Designing Databases
Presentation transcript:

Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 2 Chapter 9 Learning Objectives Concisely define each of the following key database design terms: relation, primary key, normalization, functional dependency, field, data type, null value, and secondary key. Explain the role of designing databases in the analysis and design of an information system. Transform an entity-relationship (E-R) diagram into an equivalent set of well-structured (normalized) relations.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall Introduction 3 Chapter 9 FIGURE 9-1 Systems development life cycle with design phase highlighted

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 4 Chapter 9 Database Design File and database design occurs in two steps. 1. Develop a logical database model, which describes data using notation that corresponds to a data organization used by a database management system. Relational database model 2. Prescribe the technical specifications for computer files and databases in which to store the data. Physical database design provides specifications Logical and physical database design in parallel with other system design steps

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 5 Chapter 9 FIGURE 9-2 Relationship between data modeling and the systems development life cycle

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 6 Chapter 9 The Process of Database Design (Cont.) Four key steps in logical database modeling and design: 1. Develop a logical data model for each known user interface for the application using normalization principles. 1. Combine normalized data requirements from all user interfaces into one consolidated logical database model (view integration).

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 7 Chapter 9 The Process of Database Design (Cont.) Four key steps in logical database modeling and design: 3. Translate the conceptual E-R data model for the application into normalized data requirements. 4. Compare the consolidated logical database design with the translated E-R model and produce one final logical database model for the application.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 8 Chapter 9 Physical Database Design Key physical database design decisions include:  Choosing a storage format for each attribute from the logical database model.  Arranging related records in secondary memory (hard disks) so that records can be stored, retrieved and updated rapidly.  Selecting media and structures for storing data to make access more efficient.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 9 Chapter 9 Deliverables and Outcomes Logical database design  Must account for every data element on a system input or output. Normalized relations are the primary deliverable. Physical database design  Converts relations into database tables. Programmers and database analysts code the definitions of the database. Written in Structured Query Language (SQL).

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 10 Chapter 9 FIGURE 9-3 (d) Conceptual data model and transformed relations

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 9 Relational Database Model Relational database model:  data represented as a set of related tables or relations Relation:  a named, two-dimensional table of data; each relation consists of a set of named columns and an arbitrary number of unnamed rows

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 12 Chapter 9 Well-Structured Relation and Primary Keys Well-Structured Relation (or table)  A relation that contains a minimum amount of redundancy  Allows users to insert, modify, and delete the rows without errors or inconsistencies Primary Key  An attribute whose value is unique across all occurrences of a relation All relations have a primary key.  This is how rows are ensured to be unique.  A primary key may involve a single attribute or be composed of multiple attributes.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 13 Chapter 9 Normalization and Rules of Normalization Normalization:  the process of converting complex data structures into simple, stable data structures The result of normalization is that every nonprimary key attribute depends upon the whole primary key.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 14 Chapter 9 Functional Dependencies and Primary Keys Functional Dependency: a particular relationship between two attributes  For a given relation, attribute B is functionally dependent on attribute A if, for every valid value of A, that value of A uniquely determines the value of B.  The functional dependence of B on A is represented by A→B.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 15 Chapter 9 Functional Dependencies and Primary Keys (Cont.) Functional dependency is not a mathematical dependency. Knowledge of problem domain is most reliable method for identifying functional dependency.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 16 Chapter 9 Transforming E-R Diagrams into Relations It is useful to transform the conceptual data model into a set of normalized relations. Steps  Represent entities.  Represent relationships.  Normalize the relations.  Merge the relations.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 17 Chapter 9 Representing Entities Each regular entity is transformed into a relation. The identifier of the entity type becomes the primary key of the corresponding relation.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 18 Chapter 9 Representing Entities The primary key must satisfy the following two conditions.  The value of the key must uniquely identify every row in the relation.  The key should be nonredundant. The entity type label is translated into a relation name.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 19 Chapter 9

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 20 Chapter 9

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 21 Chapter 9 FIGURE 9-16 Class diagram corresponding to normalized relations of Hoosier Burger‘s inventory control system

© 2011 Pearson Education, Inc. Publishing as Prentice Hall Relations for Hoosier Burger 22 Chapter 9

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 23 Chapter 9 Designing Fields Field: the smallest unit of named application data recognized by system software  Attributes from relations will be represented as fields Data Type: a coding scheme recognized by system software for representing organizational data

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 24 Chapter 9 Choosing Data Types Selecting a data type balances four objectives:  Minimize storage space.  Represent all possible values of the field.  Improve data integrity of the field.  Support all data manipulations desired on the field.

© 2011 Pearson Education, Inc. Publishing as Prentice Hall Calculated Fields Calculated (or computed or derived) field: a field that can be derived from other database fields  It is common for an attribute to be mathematically related to other data.  The calculate value is either stored or computed when it is requested. 25 Chapter 9

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 26 Chapter 9 Controlling Data Integrity Default Value: a value a field will assume unless an explicit value is entered for that field Range Control: limits range of values that can be entered into field  Both numeric and alphanumeric data Referential Integrity: an integrity constraint specifying that the value (or existence) of an attribute in one relation depends on the value (or existence) of the same attribute in another relation Null Value: a special field value, distinct from zero, blank, or any other value, that indicates that the value for the field is missing or otherwise unknown

© 2011 Pearson Education, Inc. Publishing as Prentice Hall Electronic Commerce Application: Designing Databases Designing databases for Pine Valley Furniture’s WebStore  Review the conceptual model (E-R diagram).  Examine the lists of attributes for each entity.  Complete the database design.  Share all design information with project team to be turned into a working database during implementation. 27 Chapter 9

© 2011 Pearson Education, Inc. Publishing as Prentice Hall 28 Chapter 9 Summary In this chapter you learned how to: Concisely define each of the following key database design terms: relation, primary key, normalization, functional dependency, foreign key, field, data type, null value and secondary key. Explain the role of designing databases in the analysis and design of an information system. Transform an entity-relationship (E-R) diagram into an equivalent set of well-structured (normalized) relations.

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc. Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall