Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Systems Development Life Cycle
Modeling the Data: Conceptual and Logical Data Modeling
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
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.
Entity-Relationship Model and Diagrams (continued)
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Lecture Fourteen Methodology - Conceptual Database Design
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 6 Developing Data Models for Business Databases.
Modeling & Designing the Database
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Data Modeling 1 Yong Choi School of Business CSUB.
Logical Database Design Nazife Dimililer. II - Logical Database Design Two stages –Building and validating local logical model –Building and validating.
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 Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
ITEC224 Database Programming
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.
Database Systems: Design, Implementation, and Management Ninth Edition
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 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Concepts and Terminology Introduction to Database.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
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
Methodology - Conceptual Database Design
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Design – Lecture 4 Conceptual Data Modeling.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
CS311 Database Management system Somchai Thangsathityangkul 1.
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.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Data Modeling and the Entity-Relationship Model CS 475 Lecture Notes.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
The Relational Model Lecture #2 Monday 21 st October 2001.
Data Modeling and Entity-Relationship Model I
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Entity Relationship Modeling
CS311 Database Management system
Database Management system
Chapter 4 Entity Relationship (ER) Modeling
Chapter 4 Entity Relationship (ER) Modeling
Presentation transcript:

Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang

2 System Development Life Cycle Analysis Design Implement TestingProduction

3 Data Modeling  A particular way of representing data  Analysis of what information the database must hold  Relationships among components of that information Ideas ODL, UML, etc. ER Object-Oriented DBMS Relational DBMS Relations

4 Data Models Model of system in client’s mind Entity model of client’s model Table model of entity model Tables on disk Oracle server

5 Why Use Data Modelling ?  Programming relies very much on data model  Provides a method to reconcile the very different end-user views of the nature and role of data  Helps us to understand the complexity of a real world data environment  Yields a proper “blueprint” of the database design

6 Steps in Data Modelling Entity Relationship Modelling Transformation into Data Structures Normalisation of Data Structures Analysis of Requirements

7 Requirement Analysis  Must incorporate all necessary information from different major users  Identify data requirements Description of data used or generated Details of how data is to be used and generated  Describe information to be recorded  Combine into a single global view  Analyse the types of transactions to be performed

8 ER Modelling of Requirements  Construct an ER model to describe the data objects and their interrelationships  Identify key attributes  Decide on the functionality of relationships (mandatory or optional)  Construct a schematic ER model which gives a global view of the entire database

9 Transformation of the ER Model to a Schema  Map the ER model onto a set of data structure, or schema  Schema : the description of the organization of a database seen by the DBA

10 Normalisation of the Schema  Reduce each relation to the highest stage of normalisation  BUT designer may wish to refine the resultant schema in order to improve processing efficiency

11 Logical vs. Physical DB Design (II) Physical DB Design Logical DB Design Views Program Data Selected and derived tables and columns Tables and columns How the data is stored in the computer

12 Components of Database Design  The four representations or abstractions will progressively get more details of the system : Data requirements (Textual Information) Conceptual data model (E-R Model) Logical schema (Normalized Entity) Physical Storage schema (Create Table Statements)

13 Conceptual Data Model (I) 1.Identify entity types 2.Identify relationship types 3.Identify and associate attributes with entity or relationship types 4.Determine attribute domain 5.Determine candidate, primary and alternate ket attributes

14 Conceptual Data Model (II) 6.Validate conceptual model against user transactions 7.Review conceptual data model with user

15 Entity-attribute-relationship Models (EAR)  Used to produce conceptual data model  Consists of : A formal description of each entity in terms of its attributes Descriptions of the meanings of relationships Descriptions of any constraints The ER diagram

16

17 Entity Relationship Model  There are many notations for ERD such as UML, Chen, Crow’s feet  Create an entity relationship diagram from business specifications or narratives  A department have many employee EMPLOYEE number number name name job title job title DEPARTMENT number number name name location location have Child entityParent entity

18

19 Entities Relationship  Define associations among entities  All relationships are bi-directional  Degrees of relationships One-to-one relationship (1:1) One-to-many relationship (1:M) Many-many relationship (M:N)

20 Degrees of Relationships One-to-many Relationship One-to-one Relationship Student Student-id Student-name Course-code Account-id usage password have Student Program Student-id Student-name Program-code Program-name have Master EntityDetail Entity

21 Many-to-many Relationship You should resolve it by adding link entity Student Course Mark Master Entity Link Entity Student-id Student-name Program-code Student-id Course-code mark Course-code Course-name Student Course Student-id Student-name Program-code Course-code Course-name take have get belong to have for

22 Optional vs. Mandatory Relationship “A course must be taught by only one lecturer.” Lecturer Course teach “A lecture may teach one or many courses.”

23 Draw an ERD  Each company operates four departments, and each department belongs to one company. Each department employs one or more employees, and each employee works for one department. Each of the employee may or may not have one or more dependants, and each dependant belongs to one employee. Each employee may or may not have an employment history

24 Q & A