0% found this document useful (0 votes)
80 views

Tutorial 02

This document contains a tutorial on database management systems with 4 questions. It discusses modeling entities, relationships, and attributes for scenarios involving a hospital assigning doctors to patients, a university conducting degree courses for students, a manufacturer ordering parts from suppliers, and an employee working in different departments and locations for a company over time. Entities, relationships, and attributes are identified and ER diagrams are drawn to model the scenarios. The ER diagram for the company is later modified to include employee dependents covered by a medical scheme and to remove employee information when they leave the company.

Uploaded by

WisdomSeekerD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Tutorial 02

This document contains a tutorial on database management systems with 4 questions. It discusses modeling entities, relationships, and attributes for scenarios involving a hospital assigning doctors to patients, a university conducting degree courses for students, a manufacturer ordering parts from suppliers, and an employee working in different departments and locations for a company over time. Entities, relationships, and attributes are identified and ER diagrams are drawn to model the scenarios. The ER diagram for the company is later modified to include employee dependents covered by a medical scheme and to remove employee information when they leave the company.

Uploaded by

WisdomSeekerD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Database Management Systems I

YEAR 1, SEMESTER 2, 2014



TUTORIAL 2 WEEK 3


1. Consider the statement below,
In Health Plus Hospital an admitted patient is assigned for a specific doctor for
examination. One doctor is assigned with many patients
a) Identify entities and relationships.
b) Work out the cardinalities
c) Identify possible attributes for the entities
d) Draw an ER diagram.

2. At SLIIT, degree courses are conducted. Students can enroll in degree courses .They
have to follow many units/subjects for a particular degree program. There is a well
qualified academic staff to teach.
a) Identify the entities on the above scenario
b) Identify the relationships between entities.
c) Draw an ER diagram. Show some possible attributes for each entity and also
indicate the cardinalities.

3. Consider the following statement.
Manufacturer orders parts from suppliers. A given manufacturer can order a particular
part from many suppliers
a) Identify the entities.
b) Draw a suitable ER Diagram. Consider the following requirement.
A manufacturer can order a particular part from many suppliers
4. Answer the questions considering the scenario given below.

MultiColor (Pvt) Ltd., a manufacturing company, is located at 35/1, Galle road, Colombo
04. It has 6 departments: Production, Business Development, Human Resource
Management, Finance, IT and Research & Development.

Rosell, 23 years old, a diploma holder who is residing at 54/A, Kirula Road, Narahempita
joined the company as a management trainee. She joined the Production department on
01/01/2005. When Rosell successfully completed her Commerce degree, she was
promoted as Finance Executive and transferred to the Finance department from
02/02/2006.

Considering her MBA qualification, the management of the company promoted her as
Assistant Manager - Business Development and transferred to the Business Development
department with effect from 03/03/2008.

a) Identify the entities and their attributes.

b) Draw an ER diagram to model the above scenario.

c) The company expanded its operations in 2010. It opened branches in Kandy,
Mahiyanganaya, Kegalle, Biyagama, Katunayake and Galle. Now, each employee
works in one department and at a single location. Modify the ER diagram to
illustrate the above scenario.

d) The company has a medical scheme which covers the dependents of employees.
Dependents are identified by their names. Once an employee leaves the company,
the company no longer wants to keep his/her information.
Modify the ER diagram to model the above scenario.






**End of the Tutorial**

You might also like