Database Full Report
Database Full Report
DATABASE SYSTEMS
Semester 2 2019/2020
Group Members:
We are working on a project to develop a time management system for IIUM Waqaf. We have
been consulted by the Deputy rector of student affairs to design and produce a database
application system that would be able to recognize the volunteers and students. There are various
functions and rules that need to be added in the application that are required for the basis of this
project.
PROJECT GUIDELINES:
Project deliverables:
Task
1. Report
(ER/EER diagram and Data Dictionary)
2. SQL Script
(Tables)
3. SQL Queries
(At least 5 queries but must include the
use of joins and functions)
Task 1
Table name and attributes:
Organizers (org_id, org_name, org_address, org_phone_no)
Primary key (org_id)
Volunteers (s_id, s_name, s_nationality, s_department ,s_address, s_phone)
Primary key (s_id)
Project (project_id, project_name, project_time, project_venue, org_id, num_of_volunteers,
waqaf_time, p_semester)
Primary key (project_id)
Foreign key (org_id)
Project_stat (drsa_id, p_semester, approval_stat, project_id, org_id, completion_stats,
required_volunteers, registered_volunteers)
Primary key (drsa_id)
Foreign key (p_semester, project_id, org_id, registered_volunteers)
Feedback (feedback_id, project_id, org_id, s_id, p_satisfaction, p_significance,
p_adequacyOfTime, p_impact)
Primary key (feedback_id)
Foreign key (project_id, org_id, s_id)
Business rules:
1. Organizers and volunteers can register themselves
2. Organizers can set up projects (maximum 5 per semester)
3. DRSA have to approve the projects after setting up
4. Organizers can set limit of volunteers and waqaf for their project
5. Volunteers can register to take part in a project (maximum 3 per semester)
6. Organizers can modify the project details
7. The status of project will be tracked
8. Feedback option will be available to volunteers to evaluate the project aspects with
scoring mechanism (rate from 1-10)
EER Normalized Diagram:
Data Dictionary:
Table creation
Queries
1. Display the details of organizers with projects containing more than 3 volunteers
select
Organizers.org_id,Organizers.org_name,Organizers.org_address,Organizers.org_phone_no,
Project.num_of_volunteers from Project
right join Organizers on Organizers.org_id = Project.org_id
where Project.num_of_volunteers >3;
2. Display the details of Organizers who joined in semester 2 and venue is Masjed
Shah
Select
Organizers.org_id,Organizers.org_name,Organizers.org_address,Organizers.org_phone_no
from Organizers
full join project on project.org_id = Organizers.org_id
where project.p_semester = '2' and project.project_venue = 'Masjed Shah';
3. Display the details of organizers with approved projects
select distinct organizers.org_id, organizers.org_name,
organizers.org_address,organizers.org_phone_no from organizers
LEFT JOIN Project_stat on Project_stat.org_id = organizers.org_id
where approval_stat = 'Approved';
4. Count how many times the venue was used and the organizers id and name
Video link:
Task 1: https://youtu.be/Rti94YxYWts
Task 2: https://www.youtube.com/watch?v=R5IUt0Ad_H0&feature=youtu.be
Task 3: https://youtu.be/Bx1J6O0AUP8