Data Modeling and Entity- Relationship Model II. IST2102 I want a database to maintain departments in my company. Store information about my employees,

Slides:



Advertisements
Similar presentations
Database Design DB Chapter 5 J.G. Zheng June 29th 2005.
Advertisements

Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Entity-Relationship (ER) Modeling
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
ENTITY RELATIONSHIP MODELLING
IT420: Database Management and Organization
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
System Analysis - Data Modeling
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Systems Analysis and Design in a Changing World, 6th Edition
Slide 1 Chapter 05 – Part 1 Data Modeling with the Entity-Relationship Model.
Modern Systems Analysis and Design Third Edition
Data Modeling and Entity- Relationship Model I IST2101.
COURSE REGISTRATION SYSTEM Case study IST2101. Case Study: Course Registration (1) IST2102 You are helping Penn State create a course registration system.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Data Modeling and Relational Database Design. Analyze and model the relationships between entities Draw an initial entity relationship diagram Read the.
Data Modeling using Entity Relationship Diagramming (ERD)
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Conceptual Design Lecture - 2 Database Development.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
Entity Relationship Diagram (ERD) 22 February 2011.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Fundamentals of Database Management Systems, 2nd ed
DATABASE DESIGN I IST 210: Organization of Data IST210 1.
1 CSE 480: Database Systems Lecture 4: Enhanced Entity-Relationship Modeling Reference: Read Chapter 8.1 – 8.5 of the textbook.
Data Modeling IST210 Class Lecture.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling II – Relationships Management Information.
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
advanced data modeling
Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
DBMS ER model-2 Week 6-7.
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)
Data Modeling and Entity-Relationship Model I
Database Design I IST 210: Organization of Data IST2101.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
1 Database Design Entity-Relationship Modeling N. Ilayaraja PSG Tech.
Database Design Chapters 17 and 18.
Data Modeling and the Entity-Relationship Model
CSIS 115 Database Design and Applications for Business
Requirements Become the E-R Data Model
IST 210: Organization of Data
Overview of Entity‐Relationship Model
Entity-Relationship Modeling "Extended"
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
Database Systems Instructor Name: Lecture-9.
MIS2502: Data Analytics Relational Data Modeling 2
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

Data Modeling and Entity- Relationship Model II

IST2102 I want a database to maintain departments in my company. Store information about my employees, their projects and assignments. I want …. $$$ User requirement A database YOUR JOB! Data Modeling (Ch.4) Data Modeling (Ch.4) Database Design (Ch.5)

Overview of Chapter 4: Data Modeling IST2103 Input: User requirement; Output: E-R Diagram Use Entity-Relationship Diagram (E-R Diagram) to capture all user requirements

Review of Previous Class: Draw an Entity IST2104 Entity Name  Attributes  Identifier 

Review of Previous Class: Maximum Cardinality Relationships are named and classified by their cardinality, which is a word that means count maximum cardinality is the maximum number of entity instances that may participate in a relationship instance — one, many or other some fixed number – BASKETBALL-TEAM and PLAYER could be 1:5 IST2105

Review of Previous Class: Crow’s Foot Notation IST2106 USERVIDEO USER CHANNEL EMPLOYEELOCKER OneMany (crow’s foot) Attention: do not misplace one and many notations An employee has (at most) one locker; a locker can belong to (at most) one employee A user can upload many videos; a video can be uploaded by (at most) one user A user can subscribe to many channels; a channel can be subscribed by many users upload subscribe

How to Determine Maximum Cardinality? IST2107 USERVIDEO USER CHANNEL EMPLOYEELOCKER Attention: do not misplace one and many notations An employee has (at most) one locker; a locker can belong to (at most) one employee A user can upload many videos; a video can be uploaded by (at most) one user A user can subscribe to many channels; a channel can be subscribed by many users upload subscribe User requirements Common Sense

Review Exercise Use crow’s foot notation to draw maximum cardinality on the following relationships: SALESPERSONORDER PRODUCTORDER EMPLOYEEDEPARTMENT (is manager of)

This Class Entity-Relationship Model – Entity, attribute, identifier, relationship – Maximum Cardinality: 1:1, 1:N, N:M – Minimum Cardinality: Optional, Mandatory Case Studies IST2109

Minimum Cardinality Minimum cardinality is the minimum number of entity instances that must participate in a relationship instance – typically assumes a value of zero (optional) or one (mandatory) IST21010 MandatoryOptional Crow’s foot notation

Minimum Cardinality IST21011 EMPLOYEELOCKER An employee may have a locker; a locker must belong to an employee MandatoryOptional Maximum cardinality notation is closer to entity Minimum cardinality notation is closer to the middle

Minimum Cardinality: Exercise IST21012 USERVIDEO MandatoryOptional What does the Minimum cardinality mean? (A) A user must upload a video; a video may belong to a user (B) A user may upload a video; a video must belong to a user (C) A user may upload a video; a video may belong to a user (D) A user must upload a video; a video must belong to a user

Minimum Cardinality: Exercise IST21013 Which design is most suitable? User requirements Common sense (A) (B) (C) (D) USER CHANNEL subscribe USER CHANNEL USER CHANNEL USER CHANNEL

In-Class Exercise: Minimum Cardinality IST21014 In-Class Exercise A-3 Add Minimum Cardinality symbols on the line of the relationship In-Class Exercise B-3 Add Minimum Cardinality symbols on the line of the relationship

Multiple Relationships between Entities IST21015 StudentID ClubID Name STUDENT CLUB ClubName Description president member Sometimes, there could multiple relationships with different semantic meanings between two entities. A club will have exactly one student as the president. Students can also become members of the club.

Multiple Relationships between Entities IST21016 UserID ProductID Name USER PRODUCT Name Description Sell Buy A product must be sold by exactly one user. A product may or may not have a buyer yet.

Summary IST21017 E-R Diagram: Entity-Relationship Diagram (1) entity; (2) identifier; (3) attributes; (4) relationship UserID Video ID Name Address USER VIDEO Title Description Length A complete E-R Diagram represented using Crow’s Foot notation: USER –> VIDEO: A user may upload zero to many videos VIDEO–> USER: A video must belong to exactly one user

IST21018 An online E-R diagram drawing tool: