Creating Reports: Sorting, Grouping and Summary

Master the art of transforming raw data into professional, insightful reports — a key CSEC IT skill!

1

What Makes a "Good" Report?

The Purpose

A Report is a formatted, printed document that presents data from your database in a clear, professional way. While Tables store raw data and Queries filter specific information, Reports organize everything into a presentation-ready format that managers, principals, or customers can understand at a glance.

The Three Pillars of Great Reports

  • Clarity: Is the data in logical order? (This is what Sorting does)
  • Organization: Is related data grouped together? (This is what Grouping does)
  • Insight: Does the report show totals, averages, or other meaning? (This is what Summary does)
The Messy Desk vs. The File Cabinet

Click "Reportify" to transform messy sales data into an organized report!

Sales - Region: North - $150
Sales - Region: South - $220
Sales - Region: North - $85
Sales - Region: East - $300
Sales - Region: South - $175
Sales - Region: East - $120
Sales - Region: North - $200
Sales - Region: West - $95
Sales - Region: West - $250
2

Sorting: Bringing Order to Chaos

The Direction

Ascending (A-Z, 1-10): Sorts from smallest to largest, or A to Z. Best for creating alphabetical lists of students or employees.

Descending (Z-A, 10-1): Sorts from largest to smallest, or Z to A. Perfect for showing the highest test scores at the top!

Multi-Level Sorting

When you have records that might have the same value (like two students named "Williams"), you can sort by multiple fields. For example: Sort by Last Name, then by First Name — this ensures all "Williams" are grouped together but listed alphabetically by first name.

Sort-o-Matic

Click on column headers to toggle between Ascending and Descending order!

Student Name Math Score English Score
Jordan Williams8592
Ashley Brown7888
Marcus Johnson9585
Sarah Davis8290
Mike Wilson8875
3

Grouping: Organizing by Category

The Concept

Grouping places records into "sections" based on a shared value. Imagine a school report grouped by "Form" — all Form 3 students appear together, followed by Form 4, then Form 5. This makes it easy for a principal to quickly find the information they need.

Group Headers

When you group data, a Group Header appears at the top of each section showing the category name (like "Form 3" or "North Region"). This provides visual hierarchy and helps readers navigate the report quickly.

Visual Hierarchy

Grouped reports follow a clear visual pattern: Group Header → Records in that Group → Group Footer (optional totals). This structure is much easier to read than a long, unbroken list of records.

The Grouper

Click "Group by Category" to organize these mixed-up library books!

Science: Space Explorer
Fiction: The Lost City
History: Ancient Rome
Biography: Great Leaders
Fiction: Ocean Adventure
Science: Animal Kingdom
History: World Wars
Biography: Sports Heroes
4

Summary: Adding Meaning to Numbers

What is a Summary?

A Summary (or aggregate) uses mathematical functions to describe a group of data rather than showing individual records. Instead of listing every sale, you show the Total Sales. Instead of every test score, you show the Average Grade.

Key Functions for CSEC

  • SUM: Adds up all values (e.g., Total Sales = SUM of all transactions)
  • AVG: Calculates the mean (e.g., Average Grade = SUM of scores ÷ COUNT of students)
  • COUNT: Counts how many records exist in a group
  • MIN/MAX: Finds the smallest or largest value
Instant Statistics

Click different aggregate functions to see the Group Footer update!

Textbook$45
Calculator$25
Notebook Set$15
Art Supplies$35
Science Kit$50
Shopping Trip Summary:
$170
5

Report Sections: Where Does Data Go?

Report Header/Footer

Appears once at the very beginning/end of the entire document. Use for the report title, date, and Grand Totals that apply to all data.

Page Header/Footer

Appears at the top/bottom of every page. Perfect for column names (like field headers) and page numbers.

Group Header/Footer

Appears at the start/end of every category when you group data. Use for the group name (e.g., "Form 3") and Sub-totals for that group.

Detail Section

Where the individual records appear. This is the main body of your report showing one record per line.

Report Anatomy Labeling

Drag each label to the correct section of the report!

Report Header
Page Header
Group Header
Detail Section
Group Footer
Report Footer
6

CSEC SBA Prep: The Summary Screenshot

Evidence of Learning

Showing subtotals and grand totals in your reports is a high-scoring feature for your SBA because it demonstrates you understand how to use aggregate functions and group data meaningfully.

Where to Place Totals

❌ Wrong Placement

Detail Section:
If you put "Grand Total" here, it will repeat on every single line!

✅ Correct Placement

Report Footer:
Grand Total appears once at the end — exactly where it should be!

Pre-Submission Checklist

Report has a clear title in the Report Header
Data is sorted in a logical order
Related data is grouped with headers
Subtotals appear in Group Footers
Grand Total appears in Report Footer (not Detail!)
Report includes page numbers in Page Footer
7

Knowledge Check: The Report Architect

The Logic Quiz

Test your understanding of where to place summaries!

CSEC Report Quiz

Answer quickly! You have 20 seconds per question.

Loading question...
Score: 0/5

Quiz Complete!

Design Challenge

Scenario: Store Inventory Report

You need to create a report showing all products in a store. The manager wants to see products organized by category (Electronics, Clothing, Food), with the total value of inventory per category.

Your task: What would you use for sorting and grouping?

Sort by:

A) Product Name (A-Z)

B) Price (Highest to Lowest)

C) Category

Group by:

A) Price Range

B) Category

C) Supplier Name

Answers: Sort by Product Name (A-Z), Group by Category

Sorting

Arranging data in ascending or descending order based on one or more fields

Grouping

Organizing records into categories based on shared field values

Summary/Aggregate

Calculations (SUM, AVG, COUNT) that describe a group of data

Report Sections

Different areas (Header, Detail, Footer) where specific content belongs

Scroll to Top