Logical Design 12/10/2009GAK1. Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model.

Slides:



Advertisements
Similar presentations
Logical Database Design
Advertisements

Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Systems Development Life Cycle
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
© 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
Methodology Logical Database Design for the Relational Model
Lecture Fourteen Methodology - Conceptual Database Design
Modern Systems Analysis and Design Third Edition
Chapter 9 Designing Databases
Modeling & Designing the Database
LOGICAL DATABASE DESIGN
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Logical Database Design Nazife Dimililer. II - Logical Database Design Two stages –Building and validating local logical model –Building and validating.
10-1 Chapter 10 Designing Databases Modern Systems Analysis and Design Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
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.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Functional Dependence An attribute A is functionally dependent on attribute(s) B if: given a value b for B there is one and only one corresponding value.
Chapter 16 Methodology - Conceptual Database Design.
Methodology - Conceptual Database Design Transparencies
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 2 Slide 1 Chapter 10 Designing Databases.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Methodology Conceptual Databases Design
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Concepts and Terminology Introduction to Database.
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.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Team Dosen UMN Database Design Connolly Book Chapter
Methodology - Conceptual Database Design
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Unit 4 Object Relational Modeling. Key Concepts Object-Relational Modeling outcomes and process Relational data model Normalization Anomalies Functional.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 Chapter 17 Methodology - Local Logical Database Design.
9/23/2012ISC329 Isabelle Bichindaritz1 Normalization.
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
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. 
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
11/10/2009GAK1 Normalization. 11/10/2009GAK2 Learning Objectives Definition of normalization and its purpose in database design Types of normal forms.
6-1 © Prentice Hall, 2007 Topic 6: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
8-1 © Prentice Hall, 2007 Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Methodology - Logical Database Design. 2 Step 2 Build and Validate Local Logical Data Model To build a local logical data model from a local conceptual.
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.
Methodology Conceptual Databases Design
Methodology Logical Database Design for the Relational Model
MIS 322 – Enterprise Business Process Analysis
Modern Systems Analysis and Design Third Edition
Translation of ER-diagram into Relational Schema
Chapter 9 Designing Databases
Chapter 9 Designing Databases
Chapter 12 Designing Databases
Chapter 10 Designing Databases
Chapter 9 Designing Databases
Methodology Conceptual Databases Design
Presentation transcript:

Logical Design 12/10/2009GAK1

Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model. How to derive a set of relations from a local logical data model. How to validate these relations using the technique of normalization. How to validate a logical data model to ensure it supports required user transactions. How to merge local logical data models based on specific views into a global logical data model of the enterprise. How to ensure that resultant global model is a true and accurate representation of enterprise. 12/10/2009GAK2

Acknowledgments These slides have been adapted from Thomas Connolly and Carolyn Begg 12/10/2009GAK3

12/10/2009GAK4 Use case diagram

12/10/2009GAK5 Class diagram

Logical Design Translates conceptual design into internal model Maps objects in model to specific DBMS constructs Design components – Tables – Indexes – Views – Transactions – Access authorities – Others 12/10/2009GAK6

Purpose of Database Design Structure the data in stable structures, called normalized tables – Not likely to change over time – Minimal redundancy Develop a logical database design that reflects actual data requirements Develop a logical database design from which a physical database design can be developed 12/10/2009GAK7

Purpose of Database Design Translate a relational database model into a technical file and database design that balances several performance factors Choose data storage technologies that will efficiently, accurately and securely process database activities 12/10/2009GAK8

Process of Database Design Logical Design – Based upon the conceptual data model – Four key stages 1.Develop a logical data model for each known user interface / report / view for the application using normalization principles 2.Combine normalized data requirements from all user interfaces into one consolidated logical database model 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 12/10/2009GAK9

E-R Modeling is Iterative 12/10/2009GAK10 Figure 6.8

Iterative Process of Verification 12/10/2009GAK11 Figure 6.10

Distributed Database Design Design portions in different physical locations Development of data distribution and allocation strategies 12/10/2009GAK12

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 results in converting relations into files 12/10/2009GAK13

Relational Database Model Well-Structured Relation – A relation that contains a minimum amount of redundancy and allows users to insert, modify and delete the rows without errors or inconsistencies 12/10/2009GAK14

Normalization The process of converting complex data structures into simple, stable data structures Second Normal Form (2NF) – Each nonprimary key attribute is identified by the whole key (called full functional dependency) 12/10/2009GAK15

Normalization Third Normal Form (3NF) – Nonprimary key attributes do not depend on each other (called transitive dependencies) The result of normalization is that every nonprimary key attribute depends upon the whole primary key 12/10/2009GAK16

Functional Dependencies and Primary Keys Foreign Key – An attribute that appears as a nonprimary key attribute in one relation and as a primary key attribute (or part of a primary key) in another relation 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 12/10/2009GAK17

Local Conceptual Data Model for Staff View Showing all Attributes 12/10/2009GAK18

Step 1 Remove Features not Compatible with the Relational Model First step Remove features not compatible with the relational model (optional step) To refine the local conceptual data model to remove features that are not compatible with the relational model. This involves: – remove *:* binary relationship types; – remove *:* recursive relationship types; – remove complex relationship types; – remove multi-valued attributes. 12/10/2009GAK19

Remove *:* Binary Relationship Types 12/10/2009GAK20

Remove *:* Recursive Relationship Types 12/10/2009GAK21

Remove Complex Relationship Types 12/10/2009GAK22

Remove Multi-valued Attributes 12/10/2009GAK23

Step 2 Build and Validate Local Logical Data Model Step 2 Derive relations for local logical data model – To create relations for the local logical data model to represent the entities, relationships, and attributes that have been identified. 12/10/2009GAK24

Transforming E-R Diagrams into Relations Represent Entities – Each regular entity is transformed into a relation – The identifier of the entity type becomes the primary key of the corresponding relation – The primary key must satisfy the following two conditions a.The value of the key must uniquely identify every row in the relation b.The key should be nonredundant 12/10/2009GAK25

Transforming E-R Diagrams into Relations Represent Relationships – Binary 1:N Relationships Add the primary key attribute (or attributes) of the entity on the one side of the relationship as a foreign key in the relation on the right side The one side migrates to the many side – Binary or Unary 1:1 Three possible options a.Add the primary key of A as a foreign key of B b.Add the primary key of B as a foreign key of A c.Both of the above 12/10/2009GAK26

Transforming E-R Diagrams into Relations Represent Relationships (continued) – Binary and Higher M:N relationships Create another relation and include primary keys of all relations as primary key of new relation – Unary 1:N Relationships Relationship between instances of a single entity type Utilize a recursive foreign key – A foreign key in a relation that references the primary key values of that same relation – Unary M:N Relationships Create a separate relation Primary key of new relation is a composite of two attributes that both take their values from the same primary key 12/10/2009GAK27

12/10/2009GAK28

Summary of How to Map Entities and Relationships to Relations 12/10/2009GAK29

Relations for the Staff View of DreamHome 12/10/2009GAK30

Step 2 Build and Validate Local Logical Data Model Validate relations using normalization – To validate the relations in the local logical data model using the technique of normalization. Validate relations against user transactions – To ensure that the relations in the local logical data model support the transactions required by the view. Define integrity constraints – To define the integrity constraints given in the view (i.e. required data, entity and referential integrity, domains, and enterprise constraints). 12/10/2009GAK31

Referential Integrity Constraints for Relations in Staff View of DreamHome 12/10/2009GAK32

Referential Integrity Constraints for Relations in Staff View of DreamHome 12/10/2009GAK33

Step 3 Build and Validate Global Logical Data Model 12/10/2009GAK34

Transforming E-R Diagrams into Relations Merging Relations (View Integration) – Purpose is to remove redundant relations – View Integration Problems Synonyms – Two different names used for the same attribute – When merging, get agreement from users on a single, standard name Homonyms – A single attribute name that is used for two or more different attributes – Resolved by creating a new name Dependencies between nonkeys – Dependencies may be created as a result of view integration – In order to resolve, the new relation must be normalized 12/10/2009GAK35

Build and Validate Global Logical Data Model 12/10/2009GAK36

Relations for the Branch View of DreamHome 12/10/2009GAK37

Relations that Represent the Global Logical Data Model for DreamHome 12/10/2009GAK38

Global Relation Diagram for DreamHome 12/10/2009GAK39