Second normal form (2NF) (Prototype Data Solutions)
Second normal form: a table is in 1NF and no non-key field depends on only part of a composite primary key. Removing partial dependencies means each field relies on the whole key.
Understanding Second normal form (2NF) (Prototype Data Solutions) in QCE Digital Solutions Unit 2
What it does: productName depends on productId alone, so it moves to a table keyed by productId, removing the partial dependency. quantity depends on both orderId and productId together, so it relies on the whole key and is fine for 2NF. studentName relies on only part of the composite key (studentId), so it is a partial dependency. This breaks 2NF. 2NF builds on 1NF and removes partial dependencies, so each non-key field relies on the whole primary key. A single-field key has no 'part' to depend on. A 1NF table with a single-field primary key is automatically in 2NF. Split the table. For example, move subjectName into a subjects table keyed by subjectId, and keep the rest in the original table.
Common mistakes: 2NF is about composite keys. Qty depends on the whole key (order AND product), so the key must be PRIMARY KEY (ordId, prodId). With only ordId, two products in the same order would clash. The composite key (ordId, prodId) must be unique. Row (1, 2) already exists on line 2, so this duplicate pair is rejected. It should use a different pair such as (1, 3, 2).
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 305–336) and word search (Modules 234–409).
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
2NFFill in the Blanks
Spot the Error
Student with a class code? Join your class →