You are on page 1of 4

Lab 3

Exercise 1. Convert the following Relationship to Relation Data Model

ID
Mana
ge

Name EMPLOYEES

EMPLOYEES ( ID , name , ManagementID ).

FlightID Date From Code Name

FLIGHTS LOCATIONS

To

ID Name Code Name

Process
EMPLOYEES PRODUCTS

EMPLOYESS ( ID , Name )
PRODUCTS (ID , Code , Name )
ID Name Date Code Name
Price

EMPLOYEES Sale PRODUCTS

EMPLOYEES ( ID , Name )

PRODUCTS (ID , Code , Name , Price , Date)

employeeID Date Code Name


Quantity

EMPLOYEE Sale PRODUCT

CustomerID
CUSTOMER

Name

EMPLOYEE ( employeeID , Date )


Speciality Code Name

TEACHER PERSON

ISA
STUDENT

ISA
specify the type that you use
Class

Exercise 2. ABC Consulting is a small-sized consulting firm in the IT industry. ABC’s


business is managing several Systems Development projects by assigning staff consultants to
these projects as their skills are needed. Each employee is designated to have one primary
skill, but there may be other employees with the same primary skill. A consultant may work
on one or more projects, or may not yet be assigned to a project.

The company charges for each project by billing each consultant's hours worked by the
billing rate. The hourly billing rate is dependent on the employee’s primary job skill.

Draw ER model for the problem (add the attributes that you deem necessary for each entity
in the model). Then, convert this model to Relation data model.

You might also like