Normal Forms

1. 1NF (First Normal Form)

Rule:

πŸ‘‰ A table is in 1NF if:

  1. All values are atomic (single value per cell, no multiple values).
  2. No repeating groups or arrays in a column.

Example (Not in 1NF ❌):

StudentIDNameSubjects
1JohnMath, Science
2AlicePhysics, Chem
  • Problem: Column Subjects has multiple values in one cell.

Fixed Table (In 1NF βœ…):

StudentIDNameSubject
1JohnMath
1JohnScience
2AlicePhysics
2AliceChem

Now β†’ each cell has only one value.


βœ… Super Simple Definition:

πŸ‘‰ 1NF = No repeating groups + Atomic values (one value per cell).


2. 2NF (Second Normal Form)

Step 1: Recall 1NF (First Normal Form)

  • Table must have atomic values (no repeating groups, no multiple values in one cell).
    βœ”οΈ Example (Good 1NF):
StudentIDSubjectMarks
1Math90
1Science85
2Math88

Step 2: What is 2NF?

A table is in 2NF if:

  1. It is already in 1NF βœ…
  2. Each non-key column must depend on the entire primary key β€” not only a part of it.

πŸ‘‰ This problem occurs only when you have a composite key (primary key made of 2+ columns).


Step 3: Example (Not in 2NF)

StudentIDSubjectStudentNameMarks
1MathJohn90
1ScienceJohn85
2MathAlice88
  • Here, Primary Key = (StudentID, Subject)
  • Problem ❌: StudentName depends only on StudentID, not on both (StudentID + Subject).
  • This is called partial dependency.

Step 4: Fix it β†’ Convert to 2NF

πŸ‘‰ Split the table into two:

Table 1: Student

StudentIDStudentName
1John
2Alice

Table 2: Marks

StudentIDSubjectMarks
1Math90
1Science85
2Math88

Now βœ… every column depends on the whole primary key.


βœ… Super Simple Definition:

πŸ‘‰ 2NF = 1NF + No partial dependency
(Every non-key column must depend on the whole primary key, not just a part of it).


3. 3NF (Third Normal Form)

Step 1: Recall 2NF

  • Table is in 2NF if there are no partial dependencies (non-key columns depend on the whole primary key).

Step 2: What is 3NF?

A table is in 3NF if:

  1. It is already in 2NF βœ…
  2. No transitive dependency exists.

πŸ‘‰A column depends on another column instead of depending directly on the key.


Step 3: Example (Not in 3NF)

StudentIDStudentNameDepartmentIDDepartmentName
1JohnD1Computer Sci
2AliceD2Physics
  • Primary Key = StudentID
  • Problem ❌: DepartmentName depends on DepartmentID, which itself depends on StudentID.
  • So DepartmentName is indirectly dependent on StudentID.
    This is a transitive dependency.

Step 4: Fix it β†’ Convert to 3NF

πŸ‘‰ Break into two tables:

Table 1: Students

StudentIDStudentNameDepartmentID
1JohnD1
2AliceD2

Table 2: Departments

DepartmentIDDepartmentName
D1Computer Sci
D2Physics

Now βœ… all non-key columns depend directly on the primary key only.


βœ… Super Simple Definition:

πŸ‘‰ 3NF = 2NF + No transitive dependency
(Every non-key column must depend only on the primary key, not on other non-key columns).


4. BCNF (Boyce-Codd Normal Form)

Step 1: Recall 3NF

  • A table is in 3NF if it’s in 2NF and has no transitive dependency (A column depends on another column, not directly on the key).
  • But sometimes 3NF still allows problems when there are multiple candidate keys.

Step 2: What is BCNF?

A table is in BCNF if:
πŸ‘‰ For every functional dependency (X β†’ Y), X must be a super key.

In simple words:
βœ… Every determinant (the thing on the left side) must be a key.


Step 3: Example (Not in BCNF)

StudentIDCourseInstructor
1DBMSProf. A
2NetworksProf. B
3DBMSProf. A
  • Candidate Keys: (StudentID, Course) and (Course, Instructor)
  • Functional Dependencies:
    • StudentID + Course β†’ Instructor βœ… (OK, left side is key)
    • Course β†’ Instructor ❌ (Here, Course is not a key, but it determines Instructor).

So table violates BCNF.


Step 4: Fix it β†’ Convert to BCNF

Split into two tables:

Table 1: Course_Instructor

CourseInstructor
DBMSProf. A
NetworksProf. B

Table 2: Student_Course

StudentIDCourse
1DBMS
2Networks
3DBMS

Now βœ… every dependency has a key on the left side.


βœ… Super Simple Definition:

πŸ‘‰ BCNF = Stronger 3NF

  • 3NF removes transitive dependency.
  • BCNF goes further: Every determinant must be a candidate key.

Key Differences:

Normal FormGoalKey Points
1NFEliminate duplicate data, single values per columnUnique rows, atomic values
2NFEliminate partial dependencyNo partial dependency on primary key
3NFEliminate transitive dependencyNo non-key attribute depends on another non-key attribute
BCNFLeft side of the dependency must be a superkeyLeft side of dependency must be a superkey

Quick Tips to Remember:

  1. 1NF: Atomic values (no lists).
  2. 2NF: No partial dependency (whole primary key).
  3. 3NF: No transitive dependency (non-key attributes don’t depend on each other).
  4. BCNF: Every dependency must have a superkey on the left side.

βœ… MCQs on NORMAL FORMS


1. Which of the following is required for a relation to be in 1NF?

A. No partial dependency
B. No transitive dependency
C. Atomic values only
D. No multivalued dependency

βœ” Answer: C


2. A table violates 1NF when it contains:

A. Null values
B. Composite primary key
C. Repeating groups / non-atomic attributes
D. No foreign key

βœ” Answer: C


3. A relation is in 2NF if it is in 1NF and:

A. Has no transitive dependency
B. Has no partial dependency
C. Has no multi-valued dependency
D. Has no functional dependency

βœ” Answer: B


4. Partial dependency occurs when:

A. A non-key attribute depends on part of a composite key
B. A non-key attribute depends on the whole key
C. Two non-key attributes depend on each other
D. None

βœ” Answer: A


5. A relation is in 3NF if it is in 2NF and:

A. Every non-key attribute depends only on candidate key
B. There is no partial dependency
C. There is no multi-valued dependency
D. Primary key exists

βœ” Answer: A


6. Transitive dependency means:

A. A β†’ B and B β†’ C implies A β†’ C
B. A non-key β†’ key
C. Key β†’ key
D. None

βœ” Answer: A


7. A table in BCNF must be in:

A. 1NF only
B. 2NF only
C. 3NF and every determinant must be a candidate key
D. 4NF

βœ” Answer: C


8. Which normal form eliminates all functional dependency anomalies?

A. 2NF
B. 3NF
C. BCNF
D. 4NF

βœ” Answer: C


9. The highest normal form based on functional dependencies only is:

A. 3NF
B. BCNF
C. 4NF
D. 5NF

βœ” Answer: B


10. A multi-valued dependency exists when:

A. One attribute determines multiple independent values of another
B. Two attributes depend on each other
C. Transitive dependency exists
D. None

βœ” Answer: A


11. A relation is in 4NF if it is in BCNF and:

A. Contains no transitive dependency
B. Contains no multi-valued dependency
C. Contains no join dependency
D. Contains no partial dependency

βœ” Answer: B


12. 5NF deals with

A. Join dependencies
B. Partial dependencies
C. Transitive dependencies
D. Multi-valued dependencies

βœ” Answer: A


13. The process of converting an ER model to tables is called:

A. Structuring
B. Schema refinement
C. Normalization
D. Optimization

βœ” Answer: C


14. Normalization is used to:

A. Reduce data anomalies
B. Increase redundancy
C. Slow down query performance
D. Remove candidate keys

βœ” Answer: A


15. Update anomalies occur due to:

A. Fully normalized table
B. Redundant data
C. Foreign key violations
D. Schema constraints

βœ” Answer: B


16. Which anomaly is removed by 1NF?

A. Update anomaly
B. Insertion anomaly
C. Repeating group anomaly
D. Deletion anomaly

βœ” Answer: C


17. Which normal form removes partial dependencies?

A. 1NF
B. 2NF
C. 3NF
D. BCNF

βœ” Answer: B


18. Which normal form ensures no transitive dependency?

A. 1NF
B. 2NF
C. 3NF
D. 5NF

βœ” Answer: C


19. BCNF is stronger than 3NF because:

A. It removes all anomalies
B. It requires each determinant to be a candidate key
C. It requires atomic values
D. It is required for distributed DBMS

βœ” Answer: B


20. A table is in BCNF but not in 4NF when:

A. It contains multi-valued dependencies
B. It contains transitive dependencies
C. It has composite keys
D. It has no primary key

βœ” Answer: A


21. Normalization helps in:

A. Minimizing redundancy
B. Maximizing redundancy
C. Increasing anomalies
D. Slowing database operations

βœ” Answer: A


22. The condition for 3NF is:

A. X β†’ Y and X must be a superkey
B. Y must be a prime attribute or X must be a superkey
C. No multi-valued dependency
D. No join dependency

βœ” Answer: B


23. Functional dependencies are used in determining:

A. Keys
B. Normal forms
C. Anomalies
D. All of the above

βœ” Answer: D


24. If a relation has only single candidate key, BCNF and 3NF:

A. Are always identical
B. Are always different
C. Cannot be determined
D. BCNF does not apply

βœ” Answer: A


25. Which of the following is NOT true about normalization?

A. It reduces redundancy
B. It improves consistency
C. It makes schema rigid
D. It removes anomalies

βœ” Answer: C


26. The decomposition is lossless when:

A. Common attribute is a superkey in one of the decomposed relations
B. All attributes are atomic
C. All dependencies are preserved
D. Table size increases

βœ” Answer: A


27. Dependency preservation means:

A. All original FDs can be derived after decomposition
B. No data loss
C. No multivalued dependency
D. No repeated values

βœ” Answer: A


28. Which normal form is based on multivalued dependency?

A. 3NF
B. BCNF
C. 4NF
D. 5NF

βœ” Answer: C


29. Which normal form is based on join dependency?

A. 4NF
B. 5NF
C. BCNF
D. 2NF

βœ” Answer: B


30. A table is considered normalized when it is at least:

A. 1NF
B. 2NF
C. 3NF
D. 4NF

βœ” Answer: C

This is because 3NF eliminates most practical anomalies.

πŸš€ TOP 40 MOST IMPORTANT MCQs ON NORMAL FORMS


1. Which of the following is removed by 1NF?

A. Partial dependency
B. Transitive dependency
C. Repeating groups
D. Multi-valued dependency
βœ” Ans: C


2. 2NF removes which type of dependency?

A. Multi-valued dependency
B. Transitive dependency
C. Partial dependency
D. Key dependency
βœ” Ans: C


3. A table is in 3NF if:

A. It has no partial dependency
B. It has no transitive dependency
C. It has atomic values
D. It has only a single candidate key
βœ” Ans: B


4. BCNF is stricter than 3NF because:

A. Every determinant must be a candidate key
B. Atomic values are mandatory
C. Primary key must be composite
D. Only one candidate key allowed
βœ” Ans: A


5. A transitive dependency exists when:

A. A β†’ B and B β†’ C
B. A β†’ C only
C. Key β†’ non-key
D. Non-key β†’ key
βœ” Ans: A


6. Which normal form deals with multi-valued dependency?

A. 2NF
B. 3NF
C. BCNF
D. 4NF
βœ” Ans: D


7. Join dependency is handled in:

A. 4NF
B. 5NF
C. BCNF
D. 2NF
βœ” Ans: B


8. A decomposition is lossless if:

A. All dependencies are preserved
B. Shared attribute is a superkey
C. No partial dependency
D. All attributes are atomic
βœ” Ans: B


9. 3NF allows which dependency that BCNF does NOT?

A. Partial dependency
B. Transitive dependency
C. Dependency where determinant is a prime attribute
D. Multi-valued dependency
βœ” Ans: C


10. Which best describes normalization?

A. Reducing redundancy and anomalies
B. Increasing redundancy
C. Improving storage
D. Improving indexing
βœ” Ans: A


11. Update anomalies are caused due to:

A. Lack of indexes
B. Data redundancy
C. No primary key
D. Stored procedures
βœ” Ans: B


12. A relation is in BCNF if:

A. It is in 3NF and non-key attributes depend on key
B. Every determinant is a candidate key
C. It has a single key
D. No multi-valued dependency
βœ” Ans: B


13. Which normal form is based on only functional dependencies?

A. 2NF
B. 3NF
C. BCNF
D. 4NF
βœ” Ans: C


14. Partial dependency occurs when:

A. Non-key attribute depends on part of composite key
B. Key β†’ key
C. Non-key depends on non-key
D. Composite key depends on attribute
βœ” Ans: A


15. Transitive dependency is allowed in:

A. 3NF
B. 2NF
C. BCNF
D. 1NF
βœ” Ans: D


16. Most real-world databases use which normal form?

A. 1NF
B. 2NF
C. 3NF
D. BCNF
βœ” Ans: C


17. Functional dependencies help in:

A. Identifying candidate keys
B. Determining normal forms
C. Designing schema
D. All of the above
βœ” Ans: D


18. Which NF eliminates transitive dependencies?

A. 2NF
B. 3NF
C. 4NF
D. BCNF
βœ” Ans: B


19. A relation with multi-valued dependency but no functional dependency violation belongs to:

A. 2NF
B. 3NF
C. BCNF
D. 4NF
βœ” Ans: C (BCNF satisfied), must go to 4NF to remove MVD.


20. Which normal form ensures no redundancy due to multiple independent attributes?

A. 2NF
B. 3NF
C. 4NF
D. 5NF
βœ” Ans: C


21. In 3NF, a non-prime attribute:

A. Must depend on the whole key
B. Must not depend on another non-prime attribute
C. Must be atomic
D. Must be unique
βœ” Ans: B


22. A table has attributes A, B, C. If A β†’ B and B β†’ C, then A β†’ C is:

A. Partial dependency
B. Transitive dependency
C. Multi-valued dependency
D. Join dependency
βœ” Ans: B


23. Which normal form eliminates the possibility of insertion anomalies due to repeating groups?

A. 1NF
B. 2NF
C. 3NF
D. 4NF
βœ” Ans: A


24. 5NF is mainly concerned with

A. Key dependency
B. Join dependency
C. Partial dependency
D. Transitive dependency
βœ” Ans: B


25. BCNF is violated when:

A. Non-key attribute determines a key attribute
B. Composite key exists
C. Null values exist
D. Functional dependencies are missing
βœ” Ans: A


26. A relation is in 2NF only if the primary key is:

A. Composite
B. Non-composite
C. Candidate key
D. Any key
βœ” Ans: A (2NF only matters for composite keys)


27. 3NF does not allow:

A. Partial dependency
B. Transitive dependency
C. Atomic values
D. Candidate keys
βœ” Ans: B


28. Which normal form is sometimes called β€œElementary Key Normal Form”?

A. 3NF
B. BCNF
C. 5NF
D. 4NF
βœ” Ans: C (5NF)


29. A decomposition is dependency-preserving if:

A. All functional dependencies can be inferred after decomposition
B. No repeating groups
C. No join required
D. All values are atomic
βœ” Ans: A


30. Lossless join and dependency preservation cannot always be achieved together in:

A. 2NF
B. 3NF
C. BCNF
D. 5NF
βœ” Ans: C


⭐ BONUS: High-Probability Case-Based Questions (Most Asked)

31. A table Student(ID, Course, Instructor) has:

  • ID β†’ Instructor
  • Course β†’ Instructor

Which NF is violated?
A. 2NF
B. 3NF
C. BCNF
D. 4NF
βœ” Ans: C (Instructor is determined by Course which is not candidate key)


**32. Employee(EmpID, Dept, Manager)

FDs: Dept β†’ Manager
Key: EmpID**

Which is TRUE?
A. Table is in BCNF
B. BCNF violated
C. 3NF violated
D. 2NF violated
βœ” Ans: B (Dept is not a key but determines Manager)


**33. R(A,B,C)

FDs: A β†’ B
Key = A
Then R is in:**
A. 1NF only
B. 2NF only
C. 3NF and BCNF
D. Only 3NF
βœ” Ans: C


34. Given composite key (A, B):

Dependency A β†’ C means:
A. Partial dependency exists
B. Transitive dependency exists
C. No dependency
D. Key is wrong
βœ” Ans: A


35. Table: Order(OrderID, Product, Supplier, SupplierPhone)

FD: Supplier β†’ SupplierPhone
Key: OrderID + Product

NF satisfied?
A. 1NF only
B. 2NF
C. 3NF violated
D. BCNF violated
βœ” Ans: D (Supplier is not a key)


36. A table has more than one candidate key. 3NF = BCNF when:

A. All candidate keys are single-attribute
B. All FDs have determinant as candidate key
C. Composite keys exist
D. MVD exists
βœ” Ans: A


37. 4NF removes anomalies caused by:

A. Functional dependency
B. Transitive dependency
C. Multi-valued dependency
D. Join dependency
βœ” Ans: C


38. If FD is X β†’ Y, then X is called:

A. Determinant
B. Dependent
C. Attribute set
D. None
βœ” Ans: A


39. Normalization improves:

A. Storage
B. Data integrity
C. Redundancy
D. None
βœ” Ans: B


40. When decomposition is NOT possible while preserving dependency + lossless join:

A. 2NF
B. 3NF
C. BCNF
D. 1NF
βœ” Ans: C