Professional Documents
Culture Documents
Databases - Company Projects: Student Credentials DB Pratassig 3 2021 Drop Box At: Https://Virtual - Ipb.Pt
Databases - Company Projects: Student Credentials DB Pratassig 3 2021 Drop Box At: Https://Virtual - Ipb.Pt
1. General Requirements:
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/
3. Deliverables:
4
Assignments at: https://virtual.ipb.pt/
5
student credentials DB PratAssig 3 2021