0% found this document useful (0 votes)
19 views

DBOnlyFM2321

The document outlines the steps for preparing reports based on school tests at Tawara High School, including importing data from CSV files into a database and setting primary keys. It details the creation of relationships between tables and the generation of specific tabular reports based on criteria such as gender and class code. Additionally, it specifies formatting requirements for the reports and instructions for saving and submitting them as PDFs.

Uploaded by

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

DBOnlyFM2321

The document outlines the steps for preparing reports based on school tests at Tawara High School, including importing data from CSV files into a database and setting primary keys. It details the creation of relationships between tables and the generation of specific tabular reports based on criteria such as gender and class code. Additionally, it specifies formatting requirements for the reports and instructions for saving and submitting them as PDFs.

Uploaded by

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

Database

Students at the Tawara High School are placed in one of four groups which are called houses.
These houses are Jupiter, Mars, Neptune and Saturn.

You are now going to prepare some reports based on school tests.

1 Using database software, import the file m23tests.csv

Do not import the English field.

Use these field names and data types:

Field name Data type Display


Registration_Code Text
Given_Name Text
Family_Name Text
Gender Text
Class_Code Text
House_Code Text
Maths Number 0 decimal places
Computer_Science Number 0 decimal places
Design_Technology Number 0 decimal places
Science Number 0 decimal places

Set Registration_Code as the primary key. [3]


Save the data.

2 Import the file m23houses.csv as a new table in your database. Set the House_Code field as the
primary key.

Examine the file m23staff.csv to identify the most appropriate field to use as a primary key.
Import this file as a new table in your database using this field as the primary key.
[3]

3 Edit the following record in the tests table:

Registration_Code 2016_029
Class_Code Change from 6B to 6T

Check your data entry for errors. Save the data.


[1]
4 Create one-to-many relationships between:

• the primary key field of the staff table and the Class_Code of the tests table
• the primary key field of the houses table and the House_Code field of the tests table. [1]

5 Using fields from all tables, produce a tabular report that:

• selects the records where:


– the Gender is F
– Science is 80 or more
– the Class_Code contains 6
• shows only the fields Family_Name, Gender, Teacher_Name, Science, Maths,
Computer_Science, Design_Technology, House_Name and Class_Code in this order with
data and labels displayed in full. Do not group the data
• sorts the data into ascending order of Teacher_Name and descending order of Science
• calculates the number of students and places this at the end of the report
• has the label New science group size fully visible to the left of this value
• has a page orientation of landscape
• fits on a single page wide
• includes the title STEM Science Class for 2024 displayed in a larger font size, fully visible, at
the top of the report
• displays your name, centre number and candidate number in the footer so it appears in the
same position on every page. Make sure no other data is displayed in the footer.

Save and extract your report as .pdf and send it under assignment in Ms. Teams
[9]

6 Using fields from all the tables, produce a tabular report that:

• selects only the records where:


– the Class_Code is 5C
– the House_Name is Mars
• shows only the fields Gender, Family_Name, Given_Name, House_Name, Maths,
Computer_Science and Teacher_Name in this order with data and labels displayed in full. Do
not group the data
• sorts the data into ascending order of Gender and ascending order of Family_Name
• has a page orientation of portrait
• fits on a single page
• calculates the average Maths mark in this selection and positions this number below the
Maths column
• displays this average mark with 0 decimal places
• includes the label Average Maths Score fully visible, to the left of this value
• includes the title Year Five Test Report for Mars displayed in a larger font size, fully visible,
at the top of the report
• has your name, centre number and candidate number displayed at the bottom of the report.

Save and extract your report as .pdf and send it under assignment in Ms. Teams
[11]

You might also like