Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Database Design Methodology Lecture 1, Term.

Slides:



Advertisements
Similar presentations
The transformation of an ER or EER model into a relational model
Advertisements

Conceptual / semantic modelling
Database Design: ER Modelling (Continued)
Logical Database Design
Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
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 14 & 15 Conceptual & Logical Database Design Methodology
CSC271 Database Systems Lecture # 21. Summary: Previous Lecture  Phases of database SDLC  Prototyping (optional)  Implementation  Data conversion.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Entity-Relationship modeling Transparencies
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Overview of the Database Development Process
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
ITEC224 Database Programming
Lecture 9 Methodology – Physical Database Design for Relational Databases.
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.
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
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.
Methodology: Conceptual Databases Design
DATABASE MGMT SYSTEM (BCS 1423) Chapter 5: Methodology – Conceptual Database Design.
Team Dosen UMN Database Design Connolly Book Chapter
© Pearson Education Limited, Chapter 9 Logical database design – Step 1 Transparencies.
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
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
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.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
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.
CIS 210 Systems Analysis and Development Week 6 Part I Structuring Systems Data Requirements,
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
1 Database Systems Entity Relationship (E-R) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
DBMS ER model-2 Week 6-7.
Logical Database Design Transparencies 1. ©Pearson Education 2009 Objectives How to create a set of tables from an ER model. How to check that the tables.
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.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Methodology Conceptual Databases Design
Methodology Logical Database Design for the Relational Model
Conceptual Design & ERD Modelling
Methodology Conceptual Database Design
Modeling Your Data Chapter 2 cs542
Conceptual Database Design
Entity-Relationship Modeling
Methodology Conceptual Databases Design
Database EER.
Presentation transcript:

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Database Design Methodology Lecture 1, Term 2, 2004

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Outline sfront end applications and back end databases smethodology for database design – overview srequirements specification sER/EER modelling elements of EER modelling stransformation of an ER/EER model into a relational model smotivation for normalisation

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Front-End Applications and Back-End Databases database DBMS application 1 application 2 application 3 application 4 application k application k+1 application n

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Back-End Databases sone database per information system scentral to the information system sstores data in a consistent way smechanisms for data retrieval and update snot responsible for complex calculations nowadays DBMSs provide means for server based computations trade-off between calculations performed on server and calculations performed in the front end snot responsible for data formatting

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Front-End Applications sresponsible for complex calculations sresponsible for data formatting

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College … when designing a database smust decide what is to be represented in the database what is to be represented in the front-end because many aspects may be represent-able at both ends give an example in class

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Database Design Methodology - Overview swhat is a methodology? stop down methodology requirements specification ER/EER modelling (conceptual design) refinements of higher level ER/EER models validation of ER/EER model construction of relational model (logical design) validation of relational model normalisation physical design monitoring and tuning

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Requirements Specification srequirements data transaction even by specifying the user interfaces sspecification informal English combined with diagrammatic representations selicitation for each view do you know the term database view?

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Fact Finding Techniques stechniques interviewing questionnaires examining documentation observing the enterprise in operation research syou may need to uncover things for the user tell them what may be possible requirements identification is a two way process you will need to understand the operation of the enterprise at least to some considerable extent

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Requirements Specification sexercise in class …

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Requirements Specification sbe as comprehensive as possible sdefine the scope clearly describe as clearly as possible what is to be part of the database specify clearly what is not to be included in the database (at this point it may be possible to decide, for certain aspects, whether they are to be part of the back-end or the front-end) sinfer requirements for future growth, if applicable sif this step is not carried out correctly, the final database system is bound to fail

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College ER/EER modelling sidentify entities identify attributes the set of attributes defines an entity identify candidate keys identify domains for attributes sidentify relationships identify multiplicity identify attributes (if applicable) identify domains for attributes s(possible) combine view models into unitary model svalidate model discuss the order in which these steps are to be performed

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College ER/EER modelling sdifferent people may produce different models they may all be correct could they express the same requirements? some may be better than others, though how do we measure good? it is a matter of experience … however, if the methodology is correctly followed, the design cannot be too bad …

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Identify Entities svery informal definition an entity (type) is something about which we want to store information in the database, and which has more than one instance sin text (requirements) entities are nouns spossible problems: you may identify different entities that represent the same thing (information object) you may attempt to represent two information objects with the same entity

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Identify Entities sgive example if needed

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Identify Relationships svery informal definition a relationship (type) is a link between entities that need to be recorded in the database sidentify multiplicity consider future growth spotential problems unlinked entities un-represented relationships may be due to fan and chasm traps

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Identify Attributes ssingle/composite ssingle/multi-valued sderived sidentify candidate keys sdefine domains spotential problems entities with no attributes entities with the exactly the same set of attributes impossibility of associating an attribute with any of the existing entities

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College EER Modelling Concepts sgeneralisation (sub-class / super-class) is-a relationship saggregation part-of relationship scomposition special type of aggregation the existence of the parts (instances) is not motivated (in the database) if the whole (instance) disappears (from the database) a part (instance) can only be part-of one single whole (instance) at any one time I am not so sure about this! snotation and examples on white board

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College EER Modelling Concepts sgeneralisation/specialisation participation: mandatory or optional disjoint constraint: disjoint or non-disjoint saggregations can be represented as a has relationship some people name aggregation relationships in this case, the distinction between an aggregation and a simple relationship is blurred scomposition vs aggregation the distinction may not be clear example of an aggregation: disk ( format, location, …) and recording ( actor, length, topic …)

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Validation of EER Model scheck for redundancy scheck for completion validate against requirements review model with user

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College ER/EER Model into Relational Model sproblems in class multi-valued, composite and derived attribute many-to-many relationship relationship with attributes recursive relationship ternary relationship difference between 1––* and 0––* difference between 1––(0..*) and 1––(1..*) generalisation mandatory vs optional OR vs AND

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Relational Model show do we know that the resulting relational model is good/correct? there is a formal way of checking whether a relation is in a good form or not this is through normal forms we shall study normal forms in the following two weeks

Term 2, 2004, Lecture 1, Database Design MethodologyMarian Ursu, Department of Computing, Goldsmiths College Summary sRequirements Specification – essential data and transactions be as thorough as possible sER/EER modelling it is possible to devise two or more correct models based on the same requirements specification experience leads to better design (obviously!) sEER concepts stranslation of ER/EER structures into specifications within the relational model