April 20022/CS/3X1 Database Design Design method John Wordsworth Department of Computer Science The University of Reading Room.

Slides:



Advertisements
Similar presentations
Logical Database Design
Advertisements

Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Physical Database Monitoring and Tuning the Operational System.
1 Methodology : Conceptual Databases Design © Pearson Education Limited 1995, 2005.
Methodology Logical Database Design for the Relational Model
Lecture Fourteen Methodology - Conceptual Database Design
Methodology Conceptual Database Design
Modeling & Designing the Database
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
LOGICAL DATABASE DESIGN
Database Design & ER Diagrams
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.
Chapters 17 & 18 Physical Database Design Methodology.
ITEC224 Database Programming
Lecture 9 Methodology – Physical Database Design for Relational Databases.
Chapter 16 Methodology - Conceptual Database Design.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Methodology - Conceptual Database Design Transparencies
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Methodology Conceptual Databases Design
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Chapter 16 Methodology – Physical Database Design for Relational Databases.
10/3/2012ISC329 Isabelle Bichindaritz1 Logical Design.
CSC271 Database Systems Lecture # 29. Summary: Previous Lecture  The normalization process  1NF, 2NF, 3NF  Inference rules for FDs  BCNF.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
Chapter 9 Methodology - Logical Database Design Chapter 16 in Textbook.
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.
Methodology: Conceptual Databases Design
DATABASE MGMT SYSTEM (BCS 1423) Chapter 5: Methodology – Conceptual Database Design.
Team Dosen UMN Database Design Connolly Book Chapter
Conceptual Database Design
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
10/10/2012ISC239 Isabelle Bichindaritz1 Physical Database Design.
Chapter 8 Methodology - Conceptual Database Design Chapter 15 in Textbook.
Methodology - Conceptual Database Design
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Part4 Methodology of Database Design Chapter 07- Overview of Conceptual Database Design Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
1 Chapter 17 Methodology - Local Logical Database Design.
Methodology – Physical Database Design for Relational Databases.
Conceptual Databases Design Step 1 © Pearson Education Limited 1995, 2005.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
B. Information Technology (Hons.) CMPB245: Database Design Physical Design.
Logical Design 12/10/2009GAK1. Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model.
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.
Logical Database Design and Relational Data Model Muhammad Nasir
Methodology Conceptual Databases Design
Chapter 5 Database Design
Methodology Logical Database Design for the Relational Model
Methodology Conceptual Database Design
Methodology – Physical Database Design for Relational Databases
Physical Database Design for Relational Databases Step 3 – Step 8
Translation of ER-diagram into Relational Schema
國立臺北科技大學 課程:資料庫系統 fall Chapter 18
Relational Database.
Conceptual Database Design
Logical Database Design
Methodology Conceptual Databases Design
Methodology - Global Logical Database Design
Chapter 3 The Relational Model
Presentation transcript:

April 20022/CS/3X1 Database Design Design method John Wordsworth Department of Computer Science The University of Reading Room 129, Ext 6544

April 20022/CS/3X2 Lecture objectives To provide an overview of the design process To explain the terms conceptual design, logical design and physical design as applied to database

April 20022/CS/3X3 Overview of the design process Step 1: Conceptual database design –Understand what’s there; for the moment don’t worry about database theory or the technology Steps 2 and 3: Logical database design –Transform the conceptual design into one that is theoretically sound Step 4 to 9: Physical database design –Transform the logical design into one that works with the chosen technology

April 20022/CS/3X4 Step 1: Conceptual database design 1.1Identify entity types. 1.2Identify relationship types. 1.3Identify and associate attributes with entity types. 1.4Determine attribute domains. 1.5Determine candidate keys and primary keys. 1.6 Consider use of enhanced modelling concepts. 1.7 Check model for redundancy. 1.8Validate local conceptual model against user transactions. 1.9 Review conceptual data model with users.

April 20022/CS/3X5 Steps 2 and 3: Logical database design Step 2:Build and validate logical data models for each view.

April 20022/CS/3X6 Step 2.1 Remove features not compatible with the relational model (1) Remove many-many binary relationships. (2) Remove many-many recursive relationships. (3) Remove complex relationships. (4) Remove multivalued attributes.

April 20022/CS/3X7 Step 2.2 Derive relations for logical data model (1) Strong entity types. (2) Weak entity types. (3) One-many binary relationship types. (4) One-one binary relationship types. (5) One-one recursive relationships (6) Super/subclass relationship types. (7) Many-many binary relationship types. (8) Complex relationship types. (9) Multivalued attributes

April 20022/CS/3X8 Step 2.3 Validate by normalisation First normal form removes repeating groups. Second normal form removes partial dependencies on the primary key. Third normal form removes transitive dependencies. Boyce-Codd normal form removes remaining anomalies from functional dependencies.

April 20022/CS/3X9 Validation of local LDM Step 2.4Validate relations against user transactions Step 2.5Define integrity constraints –Required data –Attribute domain constraints –Entity integrity –Referential integrity –Enterprise constraints (= business rules) Step 2.6Review local logical data model with user

April 20022/CS/3X10 Referential integrity (1) Insert a tuple into a child relation. (2) Delete tuple from child relation. (3) Update foreign key of child tuple. (4) Insert tuple into parent relation. (5) Delete tuple from parent relation –No action –Cascade –Set null –Set default –No check (6) Update primary key of parent relations

April 20022/CS/3X11 Step 3.1 Merge local LDMs in to Global LDM (1)Review names and contents of entities (relations) and their candidate keys. (2)Review names and contents of relationships and foreign keys. (3)Merge entities from local models. (4)Include entities unique to each local model. (5)Merge relationships from local models. (6)Include relationships unique to each local model. (7)Check for missing entities and relationships. (8)Check foreign keys. (9)Check integrity constraints. (10)Draw the global E-R diagram. (11)Update the documentation.

April 20022/CS/3X12 Rest of step 3 3.2Validate global logical data model 3.3Check for future growth 3.4Review global logical data model with users.

April 20022/CS/3X13 Steps 4 to 9 Physical database design Step 4: Translate global LDM for target DBMS Step 5: Design physical representation Step 6: Design user views Step 7: Design security mechanisms Step 8: Consider introducing controlled redundancy Step 9: Monitor and tune the operational system.

April 20022/CS/3X14 Step 4: Translate LDM for target DBMS Step 4.1Design base relations Step 4.2Design representation of derived data. Step 4.3 Design the enterprise constraints for target DBMS

April 20022/CS/3X15 Step 5: Design physical representation (1) Step 5.1Analyze transactions –frequency of transaction –what relations and attributes are accessed –what is the type of access (query, insert, update, delete) Note: if an attribute is updated, take care if it is to be included in a secondary index) –care with attributes used in predicates (WHERE), and the type of predicates (possible candidate for access structures (indexes)) –care with attributes used in joins (candidates for access structures) –time constraints

April 20022/CS/3X16 Design physical representation: 2 Step 5.2Choose file organizations –DMBS may or may not give you authority in this matter Step 5.3Choose secondary indexes –DBMS should give you authority here Step 5.4Estimate disk space requirements

April 20022/CS/3X17 Security and tuning Step 6: Design user views Step 7: Design security mechanisms –Step 6.1Design user views –Step 6.2Design access rules Step 8: Consider the introduction of controlled redundancy Step 9: Monitor and tune the operational system

April 20022/CS/3X18 Key points Conceptual design creates a number of entity-relationship models of the data. Logical design merges the conceptual models, and creates a relational model. Physical design organises the data on physical hardware devices.