C_ITIP211 LECTURER: E.DONDO. Unit 4 : DATA MODELING.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Entity-Relationship (ER) Modeling
Copyright 2001 Prentice-Hall, Inc. Object Oriented Aproach to System Requirements: Process Modeling 7.1 Chapter 7.
Modern Systems Analysis and Design Third Edition
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
MIS 210 Fall 2004Sylnovie Merchant, Ph. D. Lecture 4: Data Modeling Process Modeling MIS 210 Information Systems I.
System Analysis - Data Modeling
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity Relationship Diagrams Basic Elements and Rules.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Chapter 10 Structuring System Requirements: Conceptual Data Modeling.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Chapter 3: Modeling Data in the Organization
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter 8 Structuring System Data Requirements
Data Modeling Introduction. Learning Objectives Define key data modeling terms –Entity type –Attribute –Multivalued attribute –Relationship –Degree –Cardinality.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Modern Systems Analysis and Design Third Edition
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Segment 5 Database Review International Islamic University Chittagong Campus.
Data Modeling ERM ERD.
Chapter 8 Structuring System Data Requirements
Chapter 8 Structuring System Data Requirements
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 7 Structuring System Requirements: Conceptual Data Modeling 7.1.
Database Design Principles – Lecture 3
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Chapter 9 Structuring System Data Requirements Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Modern Systems Analysis and Design Third Edition
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Entity Relationship Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Business System Development
Modern Systems Analysis and Design Third Edition
Chapter 6 Structuring System Requirements: Conceptual Data Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Database Design – Lecture 4
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Overview of Entity‐Relationship Model
Entity Relationship Diagrams
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Chapter 9 Structuring System Data Requirements
Entity-Relation Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Modern Systems Analysis and Design Third Edition
Chapter 3: Modeling Data in the Organization
Entity-Relationship Diagram (ERD)
Modern Systems Analysis and Design Third Edition
Modern Systems Analysis and Design Third Edition
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
ER MODELING Instructor: SAMIA ARSHAD
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

C_ITIP211 LECTURER: E.DONDO

Unit 4 : DATA MODELING

Define key data-modeling terms Conceptual data model Entity-Relationship (E-R) diagram Entity type Entity instance Attribute Candidate key Multivalued attributes Relationship Degree Cardinality Associative entity Distinguish between unary, binary and ternary relationships Discuss relationships and associative entities Discuss relationship between data modeling and process modeling

 Focuses on representation of organizational data  Purpose is to show rules about the meaning and interrelationships among data  Entity-Relationship (E-R) diagrams are commonly used to show how data is organized  Main goal of conceptual data modeling is to create accurate E-R diagrams  Methods such as interviewing, questionnaires, and JAD are used to collect information  Consistency must be maintained among process flow, decision logic, and data modeling descriptions

Step 1: ◦ Develop a data model for the system being replaced Step 2: ◦ New conceptual data model is built that includes all the requirements of the new system Step 3: ◦ Design stage, the conceptual data model is translated into a physical design Step 4: ◦ Project repository links all design and data modeling steps performed during SDLC

 ERD is a key tool for modelling systems data and used to design a relational database  Entity-Relationship (E-R) Diagram ◦ A detailed, logical, and graphical representation of the entities, associations and data elements for an organization or business  Notation uses three main constructs ◦ Data entities ◦ Relationships ◦ Attributes

 Entity: YOU  Relationships: how you are related to other entities- e.g. Course, Book, Employer, etc.  Attributes: your name, date of birth, hair colour, height, and so on.

 Entity ◦ A person, place, object, event or concept in the user environment about which the organization wishes to maintain data ◦ Represented by a rectangle in E-R diagrams  Entity Type ◦ A collection of entities that share common properties or characteristics  Entity Instance ◦ Single occurrence of an entity type

 Entity: STUDENT  Entity type: Intelligent entity  Entity instance 1: “Jack Wilson”  Entity instance 2: “Neo Mokoena”

 Attribute ◦ A named property or characteristic of an entity that is of interest to an organization ◦ Examples :  studentNumber  employeeName [the Name(attribute) of the Employee(entity)]  productColour  departmentName  productWeight  bookAuthor  studentSurname

 Attribute Keys ◦ Each entity type must have an attribute or set of attributes that distinguishes one instance from other instances of the same type. ◦ Basically three types of identifiers:  Primary/Candidate key  Foreign Key  Multivalued Attribute

◦ *Primary/Candidate key (PK)  An attribute that uniquely identifies each instance of an entity type.  It mustn’t change over its lifetime – e.g. studentID, not studentAge ◦ *Foreign Key (FK)  is normally the PK from the main entity that is added to another entity. ◦ Multivalued Attribute  An attribute that may take on more than one value for each entity instance  E.g. a LECTURER (entity) may have obtained more than one DEGREE (attribute), so {lecturerDegree} is multivalued.

 Relationship ◦ An association between the instances of one or more entity types that is of interest to the organization ◦ Relationships are always labeled with verb phrases ◦ Relationships always flow in two directions and are, therefore, bi-directional. ◦ Example:  An employee must work for a department.  A department may consist of one or more employees.

 Degree › Number of entity types that participate in a relationship › Unary  A relationship between the instances of one entity type  An EMPLOYEE manages an EMPLOYEE (because a manager is also an employee). › Binary  A relationship between the instances of two entity types  An EMPLOYEE works for a DEPARTMENT. › Ternary  A simultaneous relationship among the instances of three entity types  Not the same as three binary relationships  A CUSTOMER places an ORDER with a SALESCLERK.

 The number of instances of entity B that can be associated with each instance of entity A  Minimum Cardinality › The minimum number of instances of entity B that may be associated with each instance of entity A  Maximum Cardinality › The maximum number of instances of entity B that may be associated with each instance of entity A

*A customer may place many zero or many orders. (crowfoot notation) *An order must be placed by one customer for the order to exist. *A minimum of zero and a maximum of ten orders are allowed per customer.

 The name of a relationship should not be too long and should capture the essence of the relationship  E.g. A customer “places” an order and an order “is placed by” a customer.  it helps to read the relationship names aloud in both directions to ensure that it makes sense within the context being analysed

 An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances

Step 1: ◦ Identify the entities Step 2: ◦ Identify the attributes for each entity Step 3: ◦ Identify the relationships, including the degrees and cardinality Step 4: ◦ Name the relationships Step 5: ◦ Draw the ERD

 Process of Conceptual Data Modeling ◦ Deliverables ◦ Gathering information  Entity-Relationship Modeling ◦ Entities ◦ Attributes ◦ Candidate keys and identifiers ◦ Multivalued attributes  Degree of Relationship  Cardinality  Associative Entities