Vous êtes sur la page 1sur 5

Database Management Systems II Lab Worksheet 01 Year 2 Semester 2

Objective: In this Practical you will review ER model and integrate designing concepts of Enhance Entity Relationship Model (EER) for data requirements. Practice 1 Draw the following relationships using EER Model 1.1 An Employee can work in many departments and one department can have many Employees.

1.2 An Employee can work in only one department and one department can have many Employees.

1.3 An Employee can work in only one department and one department can have only one Employee.

1.4 An Employee can work in only one department and one department can have only one Employee. There cannot be a department without employees.

1.5 An Employee can work in only one department and one department can have only one Employee. There cannot be an employee without a department and a department without an employee.

1.6 An Employee can work in many departments and one department can have many Employees. Departments are located at a specific Location.

Practice 2 Follow the steps to draw the EER Diagram for the scenario given below. A non-profit organization depends on a number of different types of persons for its successful operation. The organization is interested in the following attributes for all these persons: NIC number, Name, Address, Telephone numbers, Date of birth and also age. Three types of the persons are of great interest: Employees, Volunteers and Donors. Employees have a Date Hired attribute and Volunteers have a Skill Attribute. All family members of the employees will be provided with a medical allowance within the employment period. The organization keeps record of the items it receives by its Donors. A donor donates one or more items, and an item may have no donors, or, one or more donors. The attributes of the item are Name, Quantity and Type. If the donated item comes with a warranty, the warranty details should be maintained. Step 1: A non-profit organization depends on a number of different types of persons for its successful operation. The organization is interested in the following attributes for all these persons: NIC number, Name, Address, Telephone numbers, Date of birth and also Age.

Step 2: Three types of the persons are of great interest: Employees, Volunteers and Donors.

Step 3: All family members of the employees will be provided with a medical allowance within the employment period.

Step 4: The organization keeps record of the items it receives by its Donors and also the donation dates. A donor donates one or more items, and an item may have no donors, or, one or more donors. The attributes of the item are Name, Quantity and Type.

Step 5: If the donated item comes with a warranty, the warranty details should be maintained. (Warranty Code, Warranty Expiry date, Warranty Issued date, Supplier)

Step 6: Now you can draw the final EER Diagram

Complete Practice 1 in the Practical Work Book.

Vous aimerez peut-être aussi