Trisha Cummings.  Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Modeling the Data: Conceptual and Logical Data Modeling
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
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
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Lesson-19 Data Modeling and Analysis
Modeling & Designing the Database
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Entity-Relationship Design
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
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.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
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 Databases Design
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
UNIT 2.
Methodology - Conceptual Database Design
Database Systems. Entity Relationship Diagram How to Develop an ERD? Typically you will start with a case study or perhaps a logical model of the system.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
Description and exemplification of entity-relationship modelling.
In this session, you will learn to: Map an ER diagram to a table Objectives.
1 Conceptual Design using the Entity- Relationship Model.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Dr. Chaitali Basu Mukherji
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Welcome: To the fifth learning sequence “ Data Models “ Recap : In the previous learning sequence, we discussed The Database concepts. Present learning:
MBI 630: Week 9 Conceptual Data Modeling and Designing Database 6/10/2016.
IT 5433 LM2 ER & EER Model. Learning Objectives: Explain importance of data modeling Define and use the entity-relationship model Define E/R terms Describe.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Methodology Conceptual Databases Design
Methodology Conceptual Database Design
Chapter 7: Entity-Relationship Model
Entity-Relationship Model and Diagrams (continued)
CS 174: Server-Side Web Programming February 12 Class Meeting
ERD’s REVIEW DBS201.
Database Modeling using Entity Relationship Model (E-R Model)
Methodology Conceptual Databases Design
Entity-Relationship Diagram (ERD)
IT 244 Database Management System
E.R. Examples.
Presentation transcript:

Trisha Cummings

 Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through which the developer analyzes the client's requirements and develops an application.  One technique commonly used in analyzing the client's requirements is data modeling  The purpose of data modeling is to develop an accurate model, or graphical representation, of the client's information needs and business processes.

 The data model acts as a framework for the development of the new or enhanced application.  Data modeling is the process of creating a data model by applying a data model theory to create a data model instance.  A data model theory is a formal data model description.  A database model is a theory or specification describing how a database is structured and used. Several such models have been suggested.

 Conceptual data models.  Logical data models (LDMs).  Physical data models (PDMs).

 These models, sometimes called domain models, are typically used to explore domain concepts with project stakeholders.  On Agile teams high-level conceptual models are often created as part of your initial requirements envisioning efforts as they are used to explore the high-level static business structures and concepts.  On traditional teams conceptual data models are often created as the precursor to LDMs or as alternatives to LDMs.

 LDMs are used to explore the domain concepts, and their relationships, of your problem domain.  This could be done for the scope of a single project or for your entire enterprise.  LDMs depict the logical entity types, typically referred to simply as entity types, the data attributes describing those entities, and the relationships between the entities.  LDMs are rarely used on Agile projects although often are on traditional projects (where they rarely seem to add much value in practice).

 PDMs are used to design the internal schema of a database, depicting the data tables, the data columns of those tables, and the relationships between the tables.  PDMs often prove to be useful on both Agile and traditional projects and as a result the focus of this article is on physical modeling.

 Common models include:  Hierarchical model  Network model  Relational model  Entity-relationship  Object-Relational model  Object model  Associative  Concept-oriented  Entity-Attribute-Value  Multi-dimensional model  Semi-structured  Star schema  XML database

 When data modeling, we are structuring and organizing data.  These data structures are then typically implemented in a database management system.  In addition to defining and organizing the data, data modeling will impose (implicitly or explicitly) constraints or limitations on the data placed within the structure.  Managing large quantities of structured and unstructured data is a primary function of information systems.  Data models describe structured data for storage in data management systems such as relational databases.

 Entity Relationship Diagrams are a major data modelling tool and will help organize the data in your project into entities and define the relationships between the entities.  This process has proved to enable the analyst to produce a good database structure so that the data can be stored and retrieved in a most efficient manner.

 Entity  Relationship  Attribute

 A data entity is anything real or abstract about which we want to store data.  Entity types fall into five classes:  roles, events,  locations,  tangible things or  concepts.

 A data relationship is a natural association that exists between one or more entities.  Employees process payments.  Cardinality defines the number of occurrences of one entity for a single occurrence of the related entity. an employee may process many payments but might not process any payments depending on the nature of her job.

 A data attribute is a characteristic common to all or most instances of a particular entity.  Synonyms include property, data element, field.  Name, address, Employee Number, pay rate are all attributes of the entity employee.  An attribute or combination of attributes that uniquely identifies one and only one instance of an entity is called a primary key or identifier.  Employee Number is a primary key for Employee.

 Identify Entities  Find relationships  Draw a rough ERD  Fill in cardinality  Define primary keys  Draw key based erd  Identify attributes  Map attributes  Draw Fully Attributed ERD  Check Results

 A company has several departments.  Each department has a supervisor and at least one employee.  Employees must be assigned to at least one, but possibly more departments.  At least one employee is assigned to a project, but an employee may be on vacation and not assigned to any projects.  The important data fields are the names of the departments, projects, supervisors and employees, as well as the supervisor and employee number and a unique project number.

 The entities in this system are Department, Employee, Supervisor and Project.  One is tempted to make Company an entity, but it is a false entity because it has only one instance in this problem.  True entities must have more than one instance.

DepartmentEmployeeSupervisor Project Department is assigned run by Employeebelongs to works on Supervisorruns Project uses  We construct the following Entity Relationship Matrix:

 We connect the entities whenever a relationship is shown in the entity Relationship Matrix.

 From the description of the problem we see that: Each department has exactly one supervisor.  A supervisor is in charge of one and only one department.  Each department is assigned at least one employee.  Each employee works for at least one department.  Each project has at least one employee working on it.  An employee is assigned to 0 or more projects.

 The primary keys are Department Name, Supervisor Number, Employee Number, Project Number.

 There are two many-to-many relationships in the rough ERD above, between Department and Employee and between Employee and Project.  Thus we need the associative entities Department-Employee and Employee-Project.  The primary key for Department-Employee is the concatenated key Department Name and Employee Number.  The primary key for Employee-Project is the concatenated key Employee Number and Project Number

 The only attributes indicated are the names of the departments, projects, supervisors and employees, as well as the supervisor and employee NUMBER and a unique project number.

Attribute Entity Attribute Entity Department Name DepartmentSupervisor Number Supervisor Employee Number EmployeeSupervisor Name Supervisor Employee Name EmployeeProject Name Project Project Number Project

 Look at your diagram from the point of view of a system owner or user.  Is everything clear? Check through the Cardinality pairs.  Also, look over the list of attributes associated with each entity to see if anything has been omitted.

 es/datamodl.htm es/datamodl.htm  el el  ng101.html ng101.html  r2000/95169/Extra_Examples/ERD.htm r2000/95169/Extra_Examples/ERD.htm