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.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
ER Modeling Case Studies
Entity-Relationship Modeling (ER-M)
Developing ER-Diagram
ER Modeling Case Studies
ER Modeling Case Studies
Entity-Relationship Models
1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy.
ENTITY RELATIONSHIP MODELLING
Data Modeling and Entity- Relationship Model II. IST2102 I want a database to maintain departments in my company. Store information about my employees,
Draw an ER Diagram for the following (record any assumptions):
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Associative Entities A relationship cannot have attributes
Information Resources Management February 6, 2001.
The Entity-Relationship Data Model
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
The (min,max) notation (1,1) (0,1) (1,N) (1,1). SUMMARY OF ER-DIAGRAM NOTATION FOR ER SCHEMAS Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP TYPE IDENTIFYING.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
Entity/Relationship Modelling
ER Modeling Case Studies
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,
ER Modeling Case Studies
Data Modeling and Relational Database Design. Analyze and model the relationships between entities Draw an initial entity relationship diagram Read the.
Conceptual Modeling with ER Diagrams Peter Chen introduced ER Diagrams.
Db design / ER Modeling B Database Systems ER-Modeling Part 2 Wilhelm Steinbuss Room G2.04, ext 4052
CSE 441: Systems Analysis & Design
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
Practice of ER modeling
Instructor :Huda Al-Omair
Introduction to Database Systems
1 CSE 480: Database Systems Lecture 4: Enhanced Entity-Relationship Modeling Reference: Read Chapter 8.1 – 8.5 of the textbook.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
Entity – Relationship Model (E-R Model)
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Introduction to Database Systems
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Introduction to Database Systems
Database Management COP4540, SCS, FIU Database Modeling Using the Entity- Relationship Model (Continued)
COMP 430 Intro. to Database Systems Entity-Relationship Diagram Basics Slides use ideas from Chris Ré.
Lecture 5 Entity Relationship Modeling
COMP 430 Intro. to Database Systems ER Design Considerations Slides use ideas from Chris Ré.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Data Modeling and Entity-Relationship Model I
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
1 OOA3 Stellman – Preface and Intro u Key Ideas? u Assumptions by Stellman/Greene 540/3 f07 OOA3 aug28.
Entity/Relationship Modelling
The Entity-Relationship Model
Entity-Relationship Model
CSIS 115 Database Design and Applications for Business
Case Studies: Data Modeling
E-R Diagram (Cont.) Draw ER Diagram for the following scenario:
Entity-Relationship Model
Dept. of Computer & Information Sciences
ER MODEL Lecture 3.
ER Modeling Case Studies
ER Models ISSUES and Examples CS263 Lecture 9
Entity-Relationship Modeling "Extended"
Database Modeling using Entity Relationship Model (E-R Model)
CS4222 Principles of Database System
ER Modeling Case Studies
ER Modeling Case Studies
Entity Relation Model Tingting Zhang.
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

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 each department must have one and may have up to three phone numbers. Supply (min, max) constraints on this diagram. State clearly any additional assumptions you make. WORKS-IN EMPLOYEE DEPARTMENT HAS-PHONE CONTAINS PHONE

Exercise 2 For each of the following pairs of rules, draw an ER diagram showing the cardinality and participation constraints: A doctor may treat many patients. A patient may have a designated or (treated by ) doctors for different types of problems. A hospital has many patient rooms. Each patient room belongs to that hospital. An author may write many books. A book written by more than one author.

Exercise 3 Identify the entities and relationships for the following description and draw an ER diagram. Persons subscribe to various journals. Each journal has a set of numbered volumes, and each of volumes has a set of numbered issues. Persons, described by their name, SSN, and address. journal, identified by a title and an ISBN. Subscribers have an initial subscription date and a termination date for each journal to which they subscribe..

Exercise 4 Identify the entities and relationships for the following description and draw an ER diagram. A library system contains libraries, books, authors and patrons, with identifying attributes library Number, book number, author number, and patron number, respectively. Libraries are further described by a library name and location, books by title and page count, authors by author name, and patrons by patron name and. Libraries hold numerous books (some with multiple copies), each authored by one or more authors. Patrons borrow books, but at any point in time, may not have anything checked out. When they do have a book checked out, there is a due date associated with it.

Exercise 5 Identify the entities and relationships for the following description and draw an ER diagram. Departments, identified by ID, operate a variety of printers, each located in a particular room in a particular building. Printers are supplied by a number of suppliers, identified by name, with each supplier charging a different price for a given printer, but also providing different delivery delays, measured in days. A given room can have any number of printers, including none.

Exercise 6 A loan company wants to design a database to track student loans. Each student attending school is eligible for a loan. A student may have more than one loan. A student may be registered, possibly at different times, in more than one school. Each loan should belong to only one bank. Each bank can approve as many loans as it desires. For each loan, the loan company will track: the student’s SSN, name, address, amount of loan, date of loan, interest rate ( which may be different for each loan as determined by the bank), duration of loan, monthly payment, remaining balance, school ID, school name and address, number of years the student has been at the school, bank name, bank branch and bank ID. Draw an ER diagram. State any assumptions you make in the diagram.