0% found this document useful (0 votes)
70 views2 pages

Database Management Exercise

The document outlines tasks to create and populate tables in a database to track schools, attendees, presenters, and groups for a workshop. It includes: 1. Creating tables for schools, attendees, presenters, and groups with appropriate fields. 2. Modifying fields in the presenters table and adding a new field to the schools table. 3. Populating the tables with sample data. 4. Establishing relationships between the tables. 5. Creating queries to display specific data like schools with over 50 students or totals. 6. Generating a report organized by group with school details, sorted names, and totals.

Uploaded by

MATTHEW MCEWAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Database Management Exercise

The document outlines tasks to create and populate tables in a database to track schools, attendees, presenters, and groups for a workshop. It includes: 1. Creating tables for schools, attendees, presenters, and groups with appropriate fields. 2. Modifying fields in the presenters table and adding a new field to the schools table. 3. Populating the tables with sample data. 4. Establishing relationships between the tables. 5. Creating queries to display specific data like schools with over 50 students or totals. 6. Generating a report organized by group with school details, sorted names, and totals.

Uploaded by

MATTHEW MCEWAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DATABASE MANAGEMENT

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’.

4. Populate ALL THREE tables.


NB. There should be at least 25 schools and the maximum number of students allowed to
attend from each school is 150; the minimum is 20. It is also assumed that one teacher
will accompany students from each school.

5. Establish the appropriate relationship among the tables.

TASK B

Create queries to do the following:


1. Display the ID numbers and names of schools that have more than fifty (50) students
attending the workshop with a presenter of your choice. Name the query ‘MORETHAN50’.

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:

((Number of students – 50)/Number of Students) * 20


Name this query ‘DISCOUNTPERCENT’.

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.

You might also like