Database Management Exercise
Database Management Exercise
TASK A
1. Create the structure of the following three tables (remember to identify appropriate key
fields):
a. School
Field names include: SchoolID, Name of School, Address, Parish, Principal’s
name and Group Assigned (either 1 or 2)
b. Attendees
Field names include: SchoolID, Teacher’s Name, Contact Number and Number of
students
c. Presenter
Field names include: PresenterID, Name of Presenter, Topic, Address and Group
Assigned (either 1 or 2)
d. Group
Field name includes: GroupID (should hold the values 1 and 2 only)
2. Delete the field name “Address” from the Presenter’s Table, and then insert the field name
“Contact Number”.
3. Add a new field to the School Table called “Attendance Status”, where the answer is either
‘yes’ or ‘no’.
TASK B
2. List the Schools’ ID, Names of Schools, Names of teachers and Contact numbers for group 2
schools that are attending the workshop. Name the query ‘GROUP2SCHOOLS’.
3. Display the names of schools in Kingston and St. Andrew. Name the query
‘KGNSTNSCHOOLS’.
4. Show the total number of students attending the workshop. Name this query ‘TOTALSTD’.
5. Count the number of schools attending the workshop. Name this query
‘COUNTSCHOOLS’.
6. Each school can receive up to 20% discount based of the number of students attending the
workshop. If the number of students attending the workshop exceeds 50, then the discount in
percentage will be:
TASK C
Create a report showing the names of schools, accompanying teacher, contact number and the
number of students attending the workshop. The report is to be organized according to groups.
In addition, in each group the list of schools should be sorted in ascending order. Insert at an
appropriate section of the report the total number of students attending and the total number of
schools involved in the workshop. Name this report ‘Attendees Listing’. Name the report –
ATTENDEES LIST.