Entity - Relationship Modelling Exercises by Artem Chebotko

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
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.
Chapter 6: Entity-Relationship Model (part I)
Entity-Relationship Modeling (ER-M)
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.
Draw an ER Diagram for the following (record any assumptions):
E/R Exercises – Part I April 16, 2017.
Associative Entities A relationship cannot have attributes
Information Resources Management February 6, 2001.
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Information Resources Management January 30, 2001.
Systems Analysis and Design in a Changing World, 6th Edition
Case study Lisa’s Bookstore IST210.
Things are bad. Children no longer obey their parents and everyone is writing a book. -- Marcus Tillius Cicero.
COURSE REGISTRATION SYSTEM Case study IST2101. Case Study: Course Registration (1) IST2102 You are helping Penn State create a course registration system.
ER Modeling Case Studies
Practice of ER modeling
Instructor :Huda Al-Omair
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
CS411 Database Systems Kazuhiro Minami 02: The Entity-Relationship Model.
Introduction to Database Systems
Practice of ER modeling - Answer Yong Choi School of Business CSUB.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
Database Design 3: Advanced Data Modeling Concepts CS 320.
SYSTEMSDESIGNANALYSIS 1 Chapter 22 Object-Oriented Design Jerry Post Copyright © 1997.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Normalization Exercise. First Normal Form Second Normal Form.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
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.
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
Practice of ER modeling Yong Choi School of Business CSUB.
Copyright Kathy S. Schwaig, MBA 8473 Kathy S. Schwaig Information Technology.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Introduction to Database Systems
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
Lecture 5 Entity Relationship Modeling
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Test SEITA.
BANK RESEARCH MAKE A TABLE WITH THE FOLLOWING INFORMATION.
Data Modeling AND ER MODELS.
How do you solve a problem that has more than one step? For example: At the pet store, there are 134 birds, 55 cats, and some dogs. If there are 395 animals.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
Extra ER. Q1: Draw an ER diagram A construction company wishes to establish a database system to record information about employees. The employee data.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Entity/Relationship Modelling
Week 03 – ER Diagram INFOSYS 222.
Let try to identify the conectivity of these entity relationship
Information System & Database Design
The Entity-Relationship Model
ER Modeling Case Studies
Data Modeling with Entity Relationship Diagrams (Cont.)
MIS2502: Data Analytics Relational Data Modeling
Bookstore DB Requirements
ERD (Entity Relationship Diagrams)
CS4222 Principles of Database System
ITEC 3220A Using and Designing Database Systems
ER Modeling Case Studies
ER Modeling Case Studies
MIS2502: Data Analytics Relational Data Modeling 2
Conceptual modeling of databases
Database Management system
Database Management system
CMPE/SE 131 Software Engineering March 7 Class Meeting
Presentation transcript:

Entity - Relationship Modelling Exercises by Artem Chebotko

Exercise 1 Draw an ER diagram and translate it to the relational model for the following: A customer orders at least one book from a bookstore. A bookstore can process (orders from) many (or none) customers. A book can be ordered many (or zero) times.

Exercise 2 Draw an ER diagram and translate it to the relational model for the following: A customer places at least one order. An order is placed by exactly one customer. An order is sent to exactly one bookstore. A bookstore handles many (or none) orders. An order includes at least one book. A book can be included in many (or zero) orders.

Exercise 3 Draw an ER diagram and translate it to the relational model for the following: An animal shelter has many (or none) pets. A pet can be a cat or a dog. No other kinds of animals are allowed in a shelter. A pet is characterized by a tag (unique id), name, breed, age, coat, pattern, and weight.

Exercise 4 Draw an ER diagram and translate it to the relational model for the following: An animal shelter has many (or none) pets. A pet can be a cat or a dog. No other kinds of animals are allowed in a shelter. A pet is characterized by a tag (unique id), name, breed, age, coat, pattern, and weight. In addition, height and other size characteristics are recorded for dogs and food preferences are recorded for cats. A dog is walked by a volunteer at least twice a day.

Exercise 5 Draw an ER diagram and translate it to the relational model for the following: An animal shelter has many (or none) pets. A pet can be a cat or a dog. Occasionally, a shelter hosts other kinds of animals (deer, raccoon, bird, etc.) that may require medical (veterinarian) treatment. A pet is characterized by a tag (unique id), name, breed, age, coat, pattern, and weight.

Exercise 6 Draw an ER diagram and translate it to the relational model for the following: A computer programmer in a software development company is described by an employee id, name, phone, address, email, and set of skills (non-empty set). A programmer works on many (or none) projects. A project has at least one programmer assigned to it. A project has a name, description, and set of skills (non-empty set) required to contribute to it.

Exercise 7 Draw an ER diagram and translate it to the relational model for the following: A university offers a number of courses. A course may have one or more (or none) courses as prerequisites. A course may or may not have one or more scheduled sections. A professor teaches at least one course section. A student is enrolled in at least three and at most seven course sections. A professor assigns grades to students enrolled in a course section that s/he teaches.

Exercise 8 Draw an ER diagram and translate it to the relational model for the following: A bank offers three types of accounts: checking, savings, and loan/credit. A checking account has account-number, date-opened, balance, and service-fee. A savings account has account-number, date-opened, balance, and interest-rate. A loan/credit account has account-number, date-opened, balance, service-fee, interest-rate, and credit-limit.