ER-tutorial Conceptual Design

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Modeling Case Studies
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.
Prof. Sin-Min Lee Department of Computer Science
ER Modeling Case Studies
ER Modeling Case Studies
Session 2 Welcome: The sixth learning sequence
Enhanced/Extended Relationship-Diagram
The Entity-Relationship Model
Entity-Relationship Models
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
1 Enhanced Entity Relationship Modelling EER Model Concepts Includes all basic ER modeling concepts Additional concepts: subclasses/superclasses specialization/generalization.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
Case study Lisa’s Bookstore IST210.
Modern Systems Analysis and Design Third Edition
EXTENDED-ER (EER) MODEL CONCEPTS. Enhanced-ER (EER) Model Concepts  Basic ER diagram + more concepts =EER model  Additional concepts:  Subclasses/superclasses.
Enhanced Entity-Relationship and UML Modeling. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
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 Using the Entity-Relationship Model
Entities and Attributes
Chapter 7: Entity-Relationship Model
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Entity – Relationship Model (E-R Model)
Normalization Exercise. First Normal Form Second Normal Form.
Chapter 3: The Enhanced E-R Model
Weak Entity Sets A weak entity is an entity that cannot exist in a database unless another type of entity also exists in that database. Weak entity meets.
1 Database Course. 2 General Information TAs: –Sara Cohen –Jonathan Mamou Course Moderated Newsgroup: local.course.db.ta Students.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Ramez Elmasri and Shamkant Navathe Enhanced-ER (EER) Model Concepts.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Example COMPANY Database
Extra ER. Q1: Draw an ER diagram A construction company wishes to establish a database system to record information about employees. The employee data.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
Database Systems 主講人 : 陳建源 日期 :99/10/19 研究室 : 法 Chapter 4 Enhanced Entity-Relationship and Object Modeling.
Chapter 7: Entity-Relationship Model
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship (EER) Model
Enhanced Entity-Relationship and Object Modeling Objectives
© Shamkant B. Navathe CC.
Entity-Relationship Model
Enhanced Entity-Relationship (EER) Modeling
Session 2 Welcome: The sixth learning sequence
Entity-Relationship Model
ER Modeling Case Studies
© Shamkant B. Navathe CC.
Question 01 A company database needs to store information about employees (identified by NIC, with salary and phone as attributes), departments (identified.
Extra ER.
Entity-Relationship Modeling "Extended"
Data Modeling with Entity Relationship Diagrams (Cont.)
Extra ER.
© Shamkant B. Navathe CC.
CS4222 Principles of Database System
ER Modeling Case Studies
Practical Relevance Examples Class Laboratory
ER Modeling Case Studies
Sampath Jayarathna Cal Poly Pomona
Database EER.
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship (EER) Modeling
Entity-Relationship Modeling "Extended"
Extra ER.
Entity-Relationship Modeling "Extended"
Extra ER LAB #2.
Presentation transcript:

ER-tutorial Conceptual Design You have been hired to design an RDBMS for the Luxury Limousines Inc. which operates a number of vehicles. Your first task is to organize the information about all the vehicles stationed and maintained at the company. The relevant information is given below. Every vehicle has a registration number and each vehicle is of a specific model. CSC343 Fall 2006 ER tutorial

Requirements The company accommodates a number of vehicle models and each model is identified by a model number (e.g, LIN-2000) and has a capacity and weight. In addition, the model also has a range (eg. 100 km, 1000 km) associated with it. A number of technicians work for the company. You need to store the name, SIN, address, phone number and salary of each technician. Each technician specializes in one or more vehicle models. This expertise may overlap with that of other technicians. This information also needs to be recorded. CSC343 Fall 2006 ER tutorial

Requirements The company has controllers who control the incoming and outgoing vehicle traffic in the vehicle areas. As they are exposed to a lot of smoke emissions and also because their job is important, they need to have an annual medical examination. The date of the most recent exam must be stored for each controller. All company employees including technicians belong to a union. Each employee has a union membership number which must be stored. You can assume that the SIN uniquely identifies each employee. CSC343 Fall 2006 ER tutorial

Requirements The company performs a number of checks periodically to ensure that the vehicles are in good condition. These tests are standardized by the Beaureau of Motor Vehicles (BMV) and is identified by a BMV test number. The test also has a name and a maximum possible score. The BMV requires the company to keep track of each time a given vehicle is tested by a given technician using a given test. The information for each testing event is the date, the number of hours spent in testing and the score the vehicle received on the test. CSC343 Fall 2006 ER tutorial

Requirements (a) Draw an ER diagram for the company database. Make sure to indicate the various attributes of each entity and relationship set. Also specify the key and participation constraints for each relationship set. Specify (in English) any necessary overlap and covering constraints as well. (b) The BMV passes a regulation which states that tests on a vehicle must be conducted only by a technician who specializes on that vehicle model. Explain how this constraint can be expressed in the ER diagram? Explain briefly if you cannot express it. CSC343 Fall 2006 ER tutorial