Primary key
A field whose value is different for every record, such as a student ID or an AutoNumber, so each record can be identified. Names make a poor key because two people can share one.
Understanding Primary key in Years 7–8 Data & Information
What it does: Each student has a different ID number, so every record can be identified by it. Two different students can both be called Sam Nguyen, so the name cannot identify one record. A unique ID is better. Names can be shared. Two students called Sam Lee would be confused with each other. Every value in a primary key field must be different. The repeated 1002 breaks this rule. Two books could have the same title, or the library could own several copies. A unique ID number avoids this.
Common mistakes: Two students can share the same name, so Name cannot identify each record. The primary key should be StudentID, which is different for every student. An author can write many books, so the same Author value would appear in many records. The primary key should be BookID, which is unique for each book.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 9–45) and word search (Modules 9–80).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
primary keyFill in the Blanks
Spot the Error
Student with a class code? Join your class →