Be able to produce reports to display data including displaying all the required data and labels in full
Topic 18 – Databases (Cambridge IGCSE 0417)
Learning Objective
Produce a complete, correctly formatted report that displays all required data fields and full column labels, using appropriate layout, calculations and e‑safety considerations, and that meets every requirement of the Cambridge IGCSE 0417 syllabus.
1. Database Foundations
1.1 Types of Databases
Flat‑file (single‑table)
Relational (multi‑table)
All data stored in one table; no relationships.
Data split into several related tables; links made with primary and foreign keys.
Simple to create, but difficult to avoid duplication and inconsistency.
Reduces duplication, allows powerful queries and reports.
Open the database and run the query you built in Section 3.
Choose Create → Report Wizard (or Report → Design View for full control).
Select the query as the data source.
Move the required fields into the “Selected Fields” box, arranging them in the order you want them to appear.
Specify any grouping (e.g., by ProductCategory) and sorting options.
Choose a layout:
Tabular – best for numeric data and totals.
Columnar – useful for one‑record‑per‑page forms.
Select a visual style (simple shading, readable fonts).
Click Finish. The report opens in Design view for fine‑tuning.
In Design view:
Add a Report Header text box with the title, e.g. 2024 Sales Report, centre it and increase the font size.
In the Page Header, type full column headings (e.g., “Quantity Sold”, “Unit Price (£)”). Use the Auto‑Label feature if you set the Control Source to the field name.
Adjust column widths so the longest expected entry fits; enable Can Grow for text fields that may wrap.
Set numeric columns to Right‑Align and apply a numeric format:
Currency: £#,##0.00
Percentage: 0.00%
General Number: #,#0
To show a grand total, add a text box to the Report Footer and set its Control Source to =Sum([TotalSale]). Prefix it with a label “Grand Total (£)”.
Insert a Page Footer with Page [Page] of [Pages] and, if required, a confidentiality notice.
Switch to Print Preview and verify:
No truncated data – all text fully visible.
Consistent fonts, sizes, shading, and alignment.
Correct totals and full column headings on every page.
Page numbers and date are present.
Save the report (e.g., rpt_Sales2024) and then run, print or export as required.
5.3 Example Report Layout (Sales Report)
Sale ID
Product Name
Quantity Sold
Unit Price (£)
Total Sale (£)
001
Wireless Mouse
15
£12.50
£187.50
002
USB‑C Cable
30
£5.20
£156.00
003
Laptop Stand
8
£27.99
£223.92
Grand Total (£)
£567.42
Notice the full column headings – “Quantity Sold” instead of “Qty”. This satisfies the syllabus requirement that “labels are shown in full”.
6. Calculated Fields and Totals – Theory and Practice
Creating a calculated field in a query (Access/Base):
TotalSale: [QuantitySold] * [UnitPrice]
Same calculation in MySQL:
SELECT QuantitySold, UnitPrice, QuantitySold*UnitPrice AS TotalSale FROM Sales;
Displaying a grand total in a report footer:
=Sum([TotalSale])
Place this expression in the Control Source** of a text box in the Report Footer.
Before printing or sharing a report, verify that it does not contain unauthorised personal data (e.g., full addresses, ID numbers) unless the exam question explicitly requires them.
Use password protection on the database file:
Access: File → Info → Encrypt with Password
Base: File → Properties → Set Password
When exporting to PDF or CSV, double‑check that column headings do not reveal sensitive information.
Comply with the UK Data Protection Act / GDPR principles – keep data secure, limit access, and delete unnecessary copies after the exam.
8. Common Mistakes and How to Avoid Them
Missing or abbreviated labels – always use full headings; check the Page Header after design.
Truncated data – widen columns, enable Can Grow, or wrap text.
Incorrect totals – use built‑in aggregate functions (Sum, Avg, Count) rather than manual addition.
Inconsistent numeric alignment – set Text Align = Right for every numeric control.
Over‑crowded pages – use appropriate margins, limit shading, and consider grouping to reduce repetition.
Data‑protection oversight – run a final “privacy check” before printing or exporting.
9. Checklist for a Syllabus‑Compliant Report
Report title: centred, larger font, descriptive.
All required fields from the query appear in the Detail section.
Every column has a full, clear label that repeats on each page (Page Header).
Numeric fields are formatted as Currency/Percentage/Number with two decimal places and are right‑aligned.
Grand totals or subtotals are correct, labelled, and placed in the appropriate footer.
No data is truncated; column widths are sufficient for the longest expected entry.
Fonts, sizes, and shading are consistent throughout the report.
e‑Safety check completed – no unauthorised personal data displayed; file is password‑protected if required.
Report has been previewed, saved, and printed or exported as the exam question specifies.
10. Suggested Flowchart for Hand‑outs
Sequence of activities from data storage to the final printed report.
Support e-Consult Kenya
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources,
past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.