0% found this document useful (0 votes)
20 views4 pages

Binhtu

This document contains the details of Lab 3 for student Nguyen Binh Tu. It includes two exercises, the first asking the student to convert relationships to a relational data model, and the second asking the student to draw an ER model and convert it to relational form for a consulting company project management scenario. Attributes are added to the entities as needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views4 pages

Binhtu

This document contains the details of Lab 3 for student Nguyen Binh Tu. It includes two exercises, the first asking the student to convert relationships to a relational data model, and the second asking the student to draw an ER model and convert it to relational form for a consulting company project management scenario. Attributes are added to the entities as needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab 3

ID: DE170690

Name: Nguyen Binh Tu

Class: SE17D02

Exercise 1. Convert the following Relationship to Relation Data Model

ID Mana
ge

Nam EMPLOYEES
e
 EMPLOYEES (ID, Name, Manage_ID)

Flight# Date From Code Name

FLIGHTS LOCATIONS
To

 FLIGHTS (Flight#, Date)

 LOCATIONS (Code, Name,ID_Place, ID_From)

ID Nam Code Nam


e e

Proces
EMPLOYEES PRODUCTS
s

 EMPLOYEES ( ID, Name)

 PRODUCTS ( Code, Name, ID)


ID Nam Date Code Nam
e e Price

Sale
EMPLOYEES PRODUCTS

 EMPLOYEES ( ID, Name)

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

ID Nam Code Name


e
Quantit
y

Sale
EMPLOYEE PRODUCT

CustomerID
CUSTOMER
Name

 EMPLOYEE( ID, Name)

 PRODUCT ( Code, Name)

 CUSTOMER (CustomerID, Name)

 SALE ( ID, Code, CustomerID, Quantity)


Speciality Code Nam
e

IS
TEACHER PERSON
A

IS
STUDENT
A

specify the type that you use


Class

TEACHER (Code, Name, Speciality)

STUDENT (Code, Name, 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.
H

ID Name Project_ID Project_Nam


e
workHours

consult
EMPLOYEES PROJECT

billRate
Yes

SKILLS

Skill_Name
Skill_ID

EMPLOYEES (EmployeeID, Name, Skill_ID)

SKILLS (Skill_ID, Skill_Name )

PROJECT ( Project_ID, Project_Name)

Consult (Employee_ID, Project_ID, workHours, billRate)

You might also like