/en-tutor-prep-s4-term2-ict-databases/
/en-tutor-prep-s4-term2-ict-databases/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

S4 Term 2 | ICT: Databases – Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers

S4 Term 2 | ICT: Databases – Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers

  • 2026-12-01

Lesson prep guide · S4 Term 2 ICT

Students think a database is a spreadsheet, so one name is copied 9 times and one class change needs 9 edits. This lesson uses nine bookings to make one rule concrete: store each fact once and link the rest with keys.

Lesson objectives Students can (1) tell a table, a record and a field apart, and say what a database management system adds to a file; (2) choose a primary key and justify it; (3) explain what a foreign key does and name the three anomalies caused by repeated data.

01 Prior knowledge check (first 3 minutes)

If any item below fails, fix it first, or this lesson stalls:

Skill Quick check Pass standard
Reading a table 9 bookings, 6 students, 3 courses: which is the record count 9 records
Sharing 9 bookings over 3 courses, how many each Three each
Adding Fees of 480, 520 and 560 1560

02 Lesson flow (45 minutes)

Time Stage Tutor does Student does
0–5 min Opening: one sheet, three problems Show a flat sheet of 9 rows and circle the repeated class Find the repeated columns
5–15 min Tables, records and fields Show Students with six rows of three fields Count fields and rows
15–27 min Primary keys Compare student_id with class: six distinct values against two Choose a key and justify it
27–37 min Foreign keys and splitting Split into 6, 3 and 9 rows linked by two ids Draw the two links
37–42 min The cost of repetition Compare 486 bytes with 336 bytes Say where the saving comes from
42–45 min Exit check Collect three answers and sort concept, key and link errors Work without notes

03 Teaching script (read it aloud)

Act one: a database is not one big file

Ask what is wrong with keeping every booking on one sheet, and the answer is not that it looks untidy: the same fact is copied many times. The flat sheet has 9 rows, 8 columns and 72 cells, and one student name and class appear three times. A database is a set of tables; a table is made of records and fields, where one record is one row such as booking 3 for student 1 on course 103 at 560. A database management system stores the tables, controls updates, rights and backups, and every application reads the same single copy through queries.

Students restate: a table is records and fields, a database is several tables, and each fact is stored once.

Act two: keys identify, foreign keys link

A primary key is a field or set of fields that identifies one record, so it cannot repeat and cannot be empty. The student_id column runs from 1 to 6 with no repeats, so it can be the key, while class holds only two values and therefore identifies three students at once. Enrolments adds its own enrolment_id as the key and carries student_id and course_id as foreign keys, and those values must exist in Students and Courses or the row is an orphan. After the split there are 6 student rows, 3 course rows and 9 booking rows, so 486 bytes become 108 plus 84 plus 144, or 336 bytes, a saving of 150 bytes or 30.9 per cent.

Most common misconception: using a name as the key. Two students with the same name collide, so use the identifier the system issues, never a name, a phone number or a class.

Students restate: a key is unique and never empty, and a foreign key must already exist in the other table.

Act three: three anomalies, one cause

Repeated data produces three anomalies. An update anomaly: moving one student to another class means changing 9 rows, and missing one leaves the sheet contradicting itself. A delete anomaly: deleting the last booking removes that student name and class even though the student still exists. An insert anomaly: a new course with no bookings has nowhere to be stored. Splitting the tables fixes all three, because student facts live only in Students and course facts only in Courses while Enrolments records who booked what, at the cost of joining tables, which only works if the keys are set correctly.

Students restate: update, delete and insert anomalies all come from storing one fact many times.

04 Question types and steps

Type Example Steps Answer
Records and fields Students with 6 rows of 3 fields A row is a record, the header is fields 6 records, 3 fields, 18 cells
Choosing a key student_id against class Check uniqueness and whether it can be blank student_id, since class repeats
Finding foreign keys 9 rows in Enrolments Look for columns pointing at another key student_id and course_id, each one to many
Sizing data 54 bytes by 9 rows Add the bytes per field, then multiply 486 bytes becoming 336, a saving of 30.9 per cent
One flat table split into three related tables: keys identify rows, foreign keys link themFlat table: 9 rows and 8 columnsEnrol.StudentClassCourse1Chan Tai Man4AEnglish2Chan Tai Man4AMaths3Chan Tai Man4AScience…………Name and class repeat nine timesFlat: 54 bytes times 9 rows is 486 bytessplit into threeStudents: 6 rowsstudent_id is the key, 1 to 6, all differentCourses: 3 rowscourse_id is the key: 101, 102, 103Enrolments: 9 rowsstudent_id and course_id are foreign keys108 plus 84 plus 144 is 336 bytes, saving 150 bytes, or 30.9 per cent

On the left is the tutoring centre booking sheet: nine bookings across eight columns, with each student name and class written nine times, 486 bytes in all. On the right the same facts are kept once each in three tables: Students holds six rows, Courses holds three rows with the fee, and Enrolments holds nine rows stating only who booked which course, linked back by student_id and course_id for 336 bytes. Queries join the tables on the keys, so the facts cannot contradict each other.

Sanity check (must teach):Six students times three courses gives 18 pairs, of which only 9 exist, so 9 pairs are empty. A flat row of 54 bytes over 9 rows is 486 bytes, while the split tables take 108 plus 84 plus 144, or 336 bytes, a saving of 150 bytes or 30.9 per cent. The three fees 480, 520 and 560 total 1560, a mean of 520.

05 Three independent practice questions

Question Answer What to observe
What goes wrong if class is the primary key? Three students share 4A and three share 4B, so the value repeats and cannot identify one record Watch for the word repeat rather than a vague judgement
How many bytes do the three tables take, and what is saved? 336 bytes, saving 150 bytes or 30.9 per cent Watch whether they add all three tables rather than one
Why does deleting the last booking remove the student? The flat sheet keeps student and booking facts on one row, so deleting the row deletes both Watch for naming two facts sharing one row

06 Common errors and correction lines

Error Student usually writes Tutor says
Name as key “student_id is a nuisance, the name will do” “Two students can share a name, so the key must be the identifier the system issues.”
Fields and records swapped “The table has 3 records and 6 fields” “Count rows for records, then columns for fields: six records and three fields.”
Foreign key ignored “student_id is just another column” “A foreign key must exist in Students; a 7 there is an orphan row.”
Splitting adds data “Splitting doubles the data” “The total falls from 486 to 336 bytes because names are stored once.”

07 Homework (paper and question numbers)

08 Exit check (last 3 minutes)

Question Answer Verdict
With 6 students and 3 courses, how many pairs are possible? 18, of which only 9 exist Nine means they counted records instead of pairs
Why can class not be the primary key? Three students share each class, so the value repeats Missing this means act two
What is a foreign key pointing at nothing called? An orphan row, breaking referential integrity Saying it is fine means the idea is missing

09 Tutor FAQ

Which year is this page for?

S4 Term 2, the database unit of local secondary ICT; S5 extends to SQL queries and full normalisation.

Is 45 minutes enough for four ideas?

Yes: ten minutes on tables and records, twelve on keys, ten on foreign keys and splitting, with the rest for the size calculation and the exit check.

Is there a matching worksheet?

Yes. The homework links to question 9 in section C of the S4 ICT paper, which marks both the anomalies and the key labels.

Find a tutor freeTutor sign-up →

©2026 TutorZone · www.tutorzone.com.hk · Terms of use · All rights reserved. Original TutorZone material for personal study and teaching only; not for resale or republication.

Take this guide with you

Reading the full guide is free. Downloading the print version, printing it for students, or taking a whole-level pack needs a tutor account (free).

Registered tutors also get:

Register as a tutor — freeAlready registered? Log in

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →