Database Design & Normalization MCQs for NSCT
Normalisation is the step-by-step process of splitting a relation into smaller ones so that each fact is stored once. It is driven by functional dependencies and measured by normal forms: 1NF, 2NF, 3NF and BCNF. Database Design & Normalization is topic 8 of the Databases area, which carries 10% of the NSCT according to HEC's Areas of Competencies. In 2026 candidates averaged 42.3% in Databases, per the HEC NSCT report and APP.
Almost every question follows the same recipe: find the closures, find the candidate keys, then test each normal form in order. Every closure, key and normal form on this page and in the quiz was computed with a Python implementation of the closure algorithm. Our treatment follows Elmasri-Navathe and Silberschatz.
Why normalise: anomalies
Take Course(CourseID, Title, Instructor, InstructorPhone). Each phone number is repeated in every course row for that instructor, which causes three problems.
| Anomaly | What goes wrong |
|---|---|
| Update | You change the phone in one row and forget the others |
| Insertion | You cannot record a new instructor's phone until they teach a course |
| Deletion | Deleting an instructor's only course loses their phone |
Splitting the table into Course(CourseID, Title, Instructor) and Instructor(Instructor, InstructorPhone) removes all three. Exam angle: be ready to name the anomaly from a one-line story.
Functional dependencies
A functional dependency (FD) X → Y means that any two rows that agree on X also agree on Y. The closure X⁺ is everything X determines. To compute it, start with X and keep applying FDs whose left side is already inside the set.
With F = {A → B, BC → D, D → E, E → A}, the closure of BC grows step by step. BC → D adds D, D → E adds E and E → A adds A, giving (BC)⁺ = {A, B, C, D, E}. So BC is a superkey, and because neither B nor C alone reaches everything, it is a candidate key. An attribute that belongs to any candidate key is prime.
Armstrong's axioms (reflexivity, augmentation, transitivity) derive every implied FD. Union and decomposition are derived rules. Exam angle: attributes that never appear on a right-hand side must be in every key, so start your key search with them.
1NF
A relation is in First Normal Form when every cell holds one atomic value: no lists, no repeating groups. Student(ID, Phones = '0300-1111, 0321-2222') breaks it. The fix is StudentPhone(ID, Phone) with key (ID, Phone), not columns Phone1, Phone2 and Phone3. Exam angle: in the relational model every relation is in 1NF by definition, so most questions start there.
2NF
2NF = 1NF + no partial dependency: no non-prime attribute may depend on part of a candidate key. In R(A, B, C, D) with F = {A → C, AB → D}, the key is AB and A → C is partial, so R is only in 1NF. Exam angle: if every candidate key is a single attribute, a partial dependency is impossible, so the relation is automatically in 2NF.
3NF
3NF = 2NF + no transitive dependency of a non-prime attribute on a key. Formally, for every non-trivial FD X → A, either X is a superkey or A is prime. Student(StudentID, Name, DeptID, DeptName) with DeptID → DeptName is in 2NF but not 3NF, so you move (DeptID, DeptName) out. Exam angle: the "or A is prime" clause is easy to forget. It lets some relations reach 3NF even though they fail BCNF.
BCNF
Boyce-Codd Normal Form requires every non-trivial FD X → Y to have a superkey on the left, with no exceptions. Take R(A, B, C) with F = {AB → C, C → B}. The keys are AB and AC, so every attribute is prime and R is in 3NF. But C → B has a non-key left side, so R is not in BCNF.
| 3NF | BCNF | |
|---|---|---|
| Rule for X → A | X superkey or A prime | X superkey |
| Lossless decomposition | Always possible | Always possible |
| Dependency-preserving | Always possible | Not always |
Exam angle: splitting that R into (C, B) and (A, C) is lossless, but AB → C can no longer be checked inside one table. That is the classic BCNF trade-off.
Decomposition properties
A split of R into R1 and R2 is lossless if R1 ∩ R2 → R1 or R1 ∩ R2 → R2, meaning the shared attributes form a key of one side. It is dependency-preserving if every FD can still be enforced inside a single fragment. 3NF synthesis gives both properties. You make one relation per FD in a minimal cover, then add a relation containing a key if none has one. Beyond BCNF, 4NF removes multivalued dependencies.
Common traps
- Calling an attribute non-prime because it is not in the chosen primary key, when it belongs to another candidate key.
- Confusing a transitive dependency (fails 3NF) with a partial dependency (fails 2NF).
- Stopping a closure after one pass instead of repeating until nothing changes.
- Treating a superkey such as AB as a candidate key when A alone already determines everything.
- Assuming a BCNF decomposition always preserves dependencies.
- Concluding an FD holds just because sample rows do not violate it. Data can disprove an FD but never prove it.
Worked examples
Understanding. Why is every BCNF relation also in 3NF? Answer: BCNF demands a superkey on the left of every non-trivial FD. 3NF accepts that same condition or a prime right side, so any relation that passes BCNF passes 3NF automatically.
Application. R(A, B, C, D, E) has F = {AB → C, C → D, B → E}. What is its highest normal form? Answer: 1NF. A and B appear on no right side, and AB⁺ = {A, B, C, D, E}, so AB is the only key. B → E is a partial dependency of the non-prime E, so 2NF fails.
Analysis. R(A, B, C) has F = {A → B, B → C} and is split into (A, B) and (A, C). Is the split lossless and dependency-preserving? Answer: lossless but not dependency-preserving. A is common to both and A → B makes it a key of (A, B), so the join is lossless. B → C has B and C in different fragments, so it cannot be checked locally. Splitting into (A, B) and (B, C) achieves both properties.
Practise
The quiz below has 99 Database Design & Normalization questions, filterable by tier and difficulty. For long key-finding drills, see normalisation practice.
Practise: 99 questions
FAQs
How do I find all candidate keys quickly?
List the attributes that never appear on any right-hand side; they must be in every key. Compute their closure. If it covers the relation, that set is the only key. Otherwise add one attribute at a time from those that appear on both sides, compute closures, and keep only the minimal sets that reach every attribute.
Is 3NF enough in practice?
Usually yes. 3NF always allows a lossless, dependency-preserving design, and most real tables that are in 3NF are also in BCNF. The two differ only when a non-key attribute determines part of a key, as with overlapping composite keys. Designers then choose between BCNF's cleaner structure and 3NF's ability to enforce every dependency locally.
When is denormalisation justified?
Denormalisation is justified when measured read performance matters more than update cost, as in reporting tables and data warehouses. You deliberately store redundant data, such as a department name inside an employee table, to avoid joins. The price is the return of update anomalies, which triggers or batch jobs must then control.
Next step
Continue with Transaction Management MCQs, go back to the Databases hub, or try a timed NSCT mock test.