Back to Blog
Blogs 13 min read

DBMS Normalization Numerical Questions and Answers: Step-by-Step Guide

Tackle tough relational database design tasks with our curated DBMS normalization numerical questions and answers. This guide walks you through each proof for closures, candidate keys, third normal form, and BCNF.

Himanshu Garg
Himanshu Garg November 27, 2026 5 views
dbms normalization numerical questions and answers - DBMS Normalization Numerical Questions and Answers: Step-by-Step Guide

Tackle tough relational database design tasks with our curated DBMS normalization numerical questions and answers. This guide walks you through each proof for closures, candidate keys, third normal form, and BCNF.

Quick answer

This guide gives verified DBMS normalization numerical questions and answers so you can master relational schema design. Database normalization relies on functional dependencies (FDs) to cut down redundant data and stop update problems. When you compute attribute closures, you can find candidate keys, figure out the highest normal form of a table (1NF, 2NF, 3NF, or BCNF), and break tables apart while keeping dependencies and making sure joins are loss-free.

Foundations of Relational Database Normalization

Relational database normalization is a step-by-step math-based method for designing tables. Its main goal is to stop insert, update, and delete problems. It does this by making sure every attribute that is not a key depends only on the candidate keys. To work through normalization tasks, we use functional dependencies (FDs) and attribute closures. An attribute closure, written as X+, is the collection of all attributes that can be determined from the set X using the given FDs. This article gives a clear series of DBMS normalization numerical questions and answers, moving from simple candidate-key finding to advanced Boyce-Codd Normal Form (BCNF) decomposition and checking for lossless joins.

For a closely related example, see Numerical and Experimental Study on Optimizing Key Parameters of a Circulating Fluidized Bed Furnace to Improve the Fluidization Quality of Foundry Waste Sand.

Database Normal Forms Comparison Matrix

This table outlines the structural requirements, primary violation types, and resolution strategies for each major relational database normal form.

Factor Engineering view Why it matters
First Normal Form (1NF) Requires all attribute values to be atomic and prohibits multi-valued or nested attributes. Violation: Comma-separated lists or repeating groups in a column.
Second Normal Form (2NF) Must be in 1NF and contain zero partial dependencies (non-prime attributes depending on a subset of a candidate key). Resolution: Decompose the violating attributes and their determinant into a separate table.
Third Normal Form (3NF) Must be in 2NF and contain zero transitive dependencies (non-prime attributes depending on other non-prime attributes). Resolution: Extract the transitive dependency chain into its own relation.
Boyce-Codd Normal Form (BCNF) Strict version of 3NF where for every non-trivial functional dependency X -> Y, X must be a superkey. Trade-off: BCNF decomposition can sometimes result in a loss of functional dependencies.

Question 1: Finding Candidate Keys via Attribute Closure

Problem: Look at a relation schema R(A, B, C, D, E, F) that follows these functional dependencies F:
1. AB -> C
2. C -> D
3. D -> AE
4. E -> F
Find every candidate key for R.
Step-by-step Solution:
First, see which attributes never appear on the right-hand side (RHS) of any dependency. Only B never shows up on the RHS. Because nothing can determine B, every candidate key must include B.
Compute the closure of B, written (B)+:
(B)+ = {B}
Since this set does not contain all attributes of R, B by itself is not a candidate key.
Next, try adding other attributes to B. Test (AB)+:
– Begin with (AB)+ = {A, B}
– Use AB -> C: (AB)+ = {A, B, C}
– Use C -> D: (AB)+ = {A, B, C, D}
– Use D -> AE: (AB)+ = {A, B, C, D, E}
– Use E -> F: (AB)+ = {A, B, C, D, E, F}
Because (AB)+ now has every attribute of R, AB is a candidate key.
Now see if other keys exist by swapping attributes in the key. Since D -> AE, try replacing A with D. Check the closure of (BD)+:
– Start with (BD)+ = {B, D}
– Apply D -> AE: (BD)+ = {A, B, D, E}
– Apply AB -> C: (BD)+ = {A, B, C, D, E}
– Apply E -> F: (BD)+ = {A, B, C, D, E, F}
Since (BD)+ covers all attributes, BD is also a candidate key.
Next, try swapping D with C because C -> D. Test the closure of (BC)+:
– Begin with (BC)+ = {B, C}
– Use C -> D: (BC)+ = {B, C, D}
– Use D -> AE: (BC)+ = {A, B, C, D, E}
– Use E -> F: (BC)+ = {A, B, C, D, E, F}
Because (BC)+ includes every attribute, BC is another candidate key.
Finally, see if E can replace D. Test (BE)+:
– Start with (BE)+ = {B, E}
– Apply E -> F: (BE)+ = {B, E, F}
No more dependencies apply, and (BE)+ does not contain all attributes.
So the candidate keys for R are AB, BC, and BD.

For a closely related example, see Why AI Has Not Solved Local Search and What It Means for Engineers.

Question 2: Normalizing a Relation to Second Normal Form (2NF)

Problem: Let R(A, B, C, D, E) be a relation schema with functional dependencies F:
1. AB -> C
2. A -> D
3. B -> E
Identify the candidate keys, determine the current normal form, and decompose the relation into Second Normal Form (2NF) if violated.
Step-by-step Solution:
First, find the candidate key. Attributes A and B do not appear on the RHS of any FD. Let us find the closure of (AB)+:
(AB)+ = {A, B}
– Apply AB -> C: {A, B, C}
– Apply A -> D: {A, B, C, D}
– Apply B -> E: {A, B, C, D, E}
Thus, AB is the unique candidate key. The prime attributes are A and B. Non-prime attributes are C, D, and E.
A relation is in 2NF if and only if it is in 1NF and no non-prime attribute is partially dependent on any candidate key. A partial dependency occurs when a non-prime attribute depends on a proper subset of a candidate key.
Identify partial dependencies:
– In A -> D, the non-prime attribute D depends on A, which is a proper subset of candidate key AB. This is a partial dependency violation.
– In B -> E, the non-prime attribute E depends on B, which is a proper subset of candidate key AB. This is also a partial dependency violation.
Because partial dependencies exist, the relation R is in 1NF but not in 2NF.
Decomposition into 2NF:
To eliminate the partial dependencies, isolate the offending attributes and their determinants into separate relations:
– Create R1(A, D) with FD: A -> D (Candidate key: A)
– Create R2(B, E) with FD: B -> E (Candidate key: B)
– Create R3(A, B, C) with FD: AB -> C (Candidate key: AB)
This decomposition is in 2NF because all partial dependencies are eliminated.

For a closely related example, see How Bio-Inspired Robotic Animals Are Proving Their Utility in the Field.

Normal Form Identification Flow

Use this decision framework to systematically determine the highest normal form of any given relational database schema.

Factor Engineering view Why it matters
Step 1: Find Candidate Keys Compute attribute closures for combinations of attributes to find minimal superkeys. Essential step before evaluating dependency rules.
Step 2: Check for Partial Dependencies Verify if any non-prime attribute depends on a proper subset of any candidate key. If yes, the relation is only in 1NF. If no, the relation is in at least 2NF.
Step 3: Check for Transitive Dependencies Verify if any non-prime attribute determines another non-prime attribute. If yes, the relation is only in 2NF. If no, the relation is in at least 3NF.
Step 4: Check BCNF Condition Verify if the left-hand side of every non-trivial functional dependency is a superkey. If yes, the relation is in BCNF. If no, the relation is in 3NF.

Question 3: Achieving Third Normal Form (3NF) and Eliminating Transitive Dependencies

Problem: Consider a relation R(A, B, C, D, E) with functional dependencies F:
1. A -> BC
2. B -> D
3. D -> E
Find the candidate keys, identify any transitive dependencies, and decompose the relation into Third Normal Form (3NF).
Step-by-step Solution:
Find the candidate key. Attribute A does not appear on the RHS of any FD. Let us find the closure of A:
(A)+ = {A}
– Apply A -> BC: {A, B, C}
– Apply B -> D: {A, B, C, D}
– Apply D -> E: {A, B, C, D, E}
Thus, A is the unique candidate key. Prime attribute: A. Non-prime attributes: B, C, D, E.
A relation is in 3NF if, for every non-trivial functional dependency X -> Y, either X is a superkey or Y is a prime attribute.
Analyze the given FDs:
– A -> BC: A is a superkey. This FD satisfies the 3NF condition.
– B -> D: B is not a superkey, and D is not a prime attribute. This is a 3NF violation (transitive dependency: A -> B and B -> D, leading to A -> D).
– D -> E: D is not a superkey, and E is not a prime attribute. This is also a 3NF violation (transitive dependency: B -> D and D -> E, leading to B -> E).
Decomposition into 3NF:
To resolve these violations, we decompose the relation step by step by separating the attributes that cause transitive dependencies:
1. For the violation B -> D, create a relation containing B and D: R1(B, D) with FD B -> D.
2. For the violation D -> E, create a relation containing D and E: R2(D, E) with FD D -> E.
3. The remaining attributes are grouped with the primary candidate key: R3(A, B, C) with FD A -> BC.
Verify the decomposed relations:
– R1(B, D) has candidate key B. The FD B -> D satisfies BCNF/3NF.
– R2(D, E) has candidate key D. The FD D -> E satisfies BCNF/3NF.
– R3(A, B, C) has candidate key A. The FD A -> BC satisfies BCNF/3NF.
This decomposition is in 3NF, lossless, and preserves all original functional dependencies.

Question 4: Boyce-Codd Normal Form (BCNF) Decomposition

Problem: Let R(A, B, C) be a relational schema with functional dependencies F:
1. AB -> C
2. C -> A
Is the relation in 3NF? Is it in BCNF? If not, decompose it into BCNF.
Step-by-step Solution:
First, find the candidate keys of R. Let us compute closures:
– (AB)+ = {A, B} -> {A, B, C} (AB is a candidate key)
– (BC)+ = {B, C} -> {B, C, A} (BC is a candidate key, since C -> A)
Prime attributes: A, B, C. Non-prime attributes: None.
Evaluate 3NF status:
A relation is in 3NF if, for every non-trivial FD X -> Y, either X is a superkey or Y is a prime attribute.
– AB -> C: AB is a superkey. Satisfies 3NF.
– C -> A: C is not a superkey, but A is a prime attribute (part of candidate key AB). Satisfies 3NF.
Therefore, the relation R is in 3NF.
Evaluate BCNF status:
A relation is in BCNF if, for every non-trivial FD X -> Y, X is a superkey.
– AB -> C: AB is a superkey. Satisfies BCNF.
– C -> A: C is not a superkey (its closure is {A, C}, which does not contain B). This violates BCNF.
Therefore, the relation R is not in BCNF.
Decomposition into BCNF:
To decompose R into BCNF, we split the relation using the violating dependency C -> A:
– Create R1(C, A) with FD: C -> A. The candidate key is C, so this relation satisfies BCNF.
– Create R2(C, B) with no non-trivial FDs. The candidate key is CB, so this relation satisfies BCNF.
Note on dependency preservation:
In the decomposed relations R1 and R2, the functional dependency AB -> C cannot be checked without joining the tables. Therefore, this BCNF decomposition is not dependency-preserving, which represents a classic database design trade-off.

Question 5: Verifying Lossless-Join Decomposition

Problem: Let R(A, B, C, D) be a relation schema with functional dependencies F: {A -> B, B -> C}.
Suppose R is decomposed into R1(A, B) and R2(A, C, D).
Determine whether this decomposition is lossless-join or lossy.
Step-by-step Solution:
For a decomposition of a relation R into two relations R1 and R2 to be lossless, the intersection of R1 and R2 must functionally determine at least one of the relations in its entirety. Mathematically, the decomposition is lossless if:
(R1 intersect R2) -> R1 OR (R1 intersect R2) -> R2
Let us calculate the intersection of R1 and R2:
R1 intersect R2 = {A, B} intersect {A, C, D} = {A}
Now, compute the attribute closure of the intersection {A} under the functional dependencies F:
(A)+ = {A}
– Apply A -> B: {A, B}
– Apply B -> C: {A, B, C}
Thus, (A)+ = {A, B, C}.
Compare the closure (A)+ with the attribute sets of R1 and R2:
– R1 = {A, B}. Since {A, B} is a subset of (A)+, we can state that A -> R1.
– R2 = {A, C, D}. Since {A, C, D} is not a subset of (A)+ (attribute D is missing), A does not determine R2.
Because (R1 intersect R2) -> R1 holds true, the decomposition is guaranteed to be a lossless-join decomposition. If we perform a natural join on R1 and R2, we will retrieve the exact original relation without generating any spurious tuples.

Practical Implications of Normalization in Platform Engineering

While database normalization is critical for preventing data corruption in transactional systems (OLTP), real-world systems engineering requires balancing normalization against query performance. Highly normalized schemas require multiple table joins to reconstruct records, which increases CPU utilization and read latency. In microservices architectures, distributed databases often selectively denormalize schemas to 2NF or 1NF to optimize for read-heavy workloads or to avoid complex distributed joins across network boundaries. Platform engineers must evaluate the read-to-write ratio of their applications to determine whether the strict consistency of 3NF/BCNF or the performance advantages of denormalization best serve their operational requirements.

Key takeaways

  • Attribute closures are calculated by starting with the base set and iteratively adding attributes that are functionally determined by those already in the set.
  • A candidate key is a minimal superkey; its closure must contain all attributes of the relation, and no proper subset of it can be a superkey.
  • A partial dependency occurs when a non-prime attribute depends on a proper subset of a candidate key, violating the requirements of 2NF.
  • A transitive dependency occurs when a non-prime attribute is determined by another non-prime attribute, violating the requirements of 3NF.
  • A relation is in BCNF if the left-hand side of every non-trivial functional dependency is a superkey, which is stricter than 3NF.
  • Decompositions must be verified for the lossless-join property to ensure that the original data can be reconstructed exactly without spurious rows.

Questions engineers often ask

What is the difference between a prime and a non-prime attribute?

A prime attribute is any attribute that is a member of at least one candidate key of the relation. A non-prime attribute is an attribute that does not belong to any candidate key.

Can a BCNF decomposition always preserve all functional dependencies?

No. While it is always possible to decompose any relation into BCNF while ensuring a lossless join, it is not always possible to preserve all functional dependencies. In contrast, a 3NF decomposition can always be lossless and dependency-preserving.

How do you test if a decomposition is dependency-preserving?

A decomposition of relation R with dependencies F into R1 and R2 is dependency-preserving if the union of the closures of the dependencies in R1 and R2 is equivalent to the closure of the original dependencies F.

Why is BCNF stricter than 3NF?

3NF allows a dependency X -> Y if Y is a prime attribute, even if X is not a superkey. BCNF removes this exception, requiring that X must be a superkey for all non-trivial dependencies, regardless of whether Y is prime.

Continue learning: dbms normalization numerical questions and answers

Explore more database internals, systems engineering tutorials, and platform architecture insights at Fried Engineers.

Chat with Fried Engineers