You are on page 1of 2

International Business Management 2021/2022

Databases - Company projects


Theme: Practical Assignment N.3
Due Date: 16/01/2022 - 23h55

1. General Requirements:

1. The practical assignment can be performed by up to two elements groups.


2. The PDF report, must include the identification of all group elements, and
also the server database name used to do the assignment.
3. Is mandatory the use of English as language.

2. Details:
A company needs to maintain a record of tasks, for each of the ongoing projects,
associate each task to a worker and control its execution. Each task should also
include the total time to completion.
(a) Study the structure of the information fields.
(b) Draw the E/R diagram for the above data structure.
(c) Create the MySQL database using MySQL Workbench1 , to connect to the server
use the credentials file2 stored in your Drop Box at Virtual3 .
(d) Insert the necessary example information into the created tables, to satisfy all
the possible situations.
For each of the following questions, present the SQL query, a print-screen
of the result at your database and explain it:
(e) Select information to present a comprehensive list of projects, both completed
and ongoing;
(f) Select information to present the ongoing list of projects, ordered by due date;
(g) Select information to present the tasks, grouped by worker and sorted by due
date;
(h) Select information to present all the workers associated to each project, sorted
by name and grouped by project and task;
(i) Select information to present the total men/hour associated with each task;
(j) Select information to present the total men/hour associated with each project;
(k) Select information to present the workers sorted by the amount of tasks;

1
https://www.mysql.com/products/workbench/
2
student credentials DB PratAssig 3 2021
3
Drop Box at: https://virtual.ipb.pt/

©2021 - Pedro Filipe Oliveira Information Technologies Page 1 of 2


©2021 - poliveira@ipb.pt Practical Assignment N.3
International Business Management 2021/2022

3. Deliverables:

Is mandatory that the whole material should be submitted at the Assignments


section at Virtual4 .

The deliverables include:

1. Comprehensive PDF report, including:


• E/R diagram;
• SQL queries used to create the tables;
• SQL queries used to insert the example information;
• Explanation of tables created;
• Explanation of all queries to retrieve the information requested for each
question;
• Print-screen including the result of all queries at your database;
2. All tables and example information inserted at the server database created for
the assignment, using the respective credentials file5 .

4
Assignments at: https://virtual.ipb.pt/
5
student credentials DB PratAssig 3 2021

©2021 - Pedro Filipe Oliveira Information Technologies Page 2 of 2


©2021 - poliveira@ipb.pt Practical Assignment N.3

You might also like