Database Normalization Basics
- 28Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is database normalization?
28 questions
- 1
What is database normalization?
Model answer
Normalization is the process of structuring a database table so that it cannot express redundant or contradictory information, ensuring only one version of the truth can be stored.
Explanation
A normalized table prevents anomalies by design. For example, you cannot store two different dates of birth for the same customer because the structure forces uniqueness and consistency.
- 2
List three benefits of a normalized database table.
Model answer
Normalized tables are protected from contradictory data, easier to understand, and protected from insertion, update, and deletion anomalies.
Explanation
These benefits arise because normalization removes redundancy and ensures data dependencies are correctly represented, making the database more robust and maintainable.
- 3
How are database normal forms analogous to safety assessments for a bridge?
Model answer
Just as a bridge can pass increasingly strict safety levels (pedestrian, car, truck), a table can satisfy higher normal forms that provide stronger guarantees against data anomalies.
Explanation
Each normal form adds stricter criteria. First Normal Form is a basic guarantee, while higher forms like Third Normal Form offer stronger protection against redundancy and inconsistency.
- 4
Explain why using row order to convey information violates First Normal Form.
Model answer
Row order is arbitrary in a relational database; relying on it to convey meaning (e.g., listing members from tallest to shortest) violates First Normal Form because the order may not be preserved.
Explanation
To comply with 1NF, any implicit ordering must be made explicit with a dedicated column (e.g., a Height column) so the data is independent of physical storage order.
- 5
How can you fix a table that uses row order to convey information?
Model answer
Add a separate column to explicitly store the ordering attribute (e.g., a Height column) so the meaning is no longer tied to row order.
Explanation
This makes the relationship explicit and ensures the database can retrieve the data in any order without losing the intended information.
- 6
Why is mixing data types within the same column a violation of First Normal Form?
Model answer
In a relational database, each column has a defined data type; storing mixed types (e.g., integers and strings) makes the column ambiguous and is not permitted by First Normal Form.
Explanation
Once a column is defined as an integer, all values must be integers. Mixing types undermines data integrity and query reliability.
- 7
What is a primary key in a relational database?
Model answer
A primary key is a column or combination of columns that uniquely identifies each row in a table, preventing duplicate rows.
Explanation
For example, in a Beatle_Height table, the Beatle column can serve as the primary key, ensuring each Beatle appears only once.
- 8
Why does a table without a primary key violate First Normal Form?
Model answer
A primary key is required to uniquely identify rows; without it, duplicate or contradictory rows could be inserted, violating First Normal Form.
Explanation
The database platform uses the primary key to enforce uniqueness; without it, you could have multiple rows for the same entity with conflicting data (e.g., two different heights for the same Beatle).
- 9
Give an example of a repeating group and explain why it violates First Normal Form.
Model answer
Storing a player's inventory as a text string or as multiple columns (e.g., Item1, Item2) creates a repeating group; this violates 1NF because querying becomes impractical and the design cannot easily accommodate variable numbers of items.
Explanation
The proper solution is to store each item in a separate row with a composite primary key (Player, Item_Type), making the data atomic and easy to query.
- 10
How should a repeating group be redesigned to satisfy First Normal Form?
Model answer
Create a separate table where each instance of the repeating group becomes a distinct row, with a composite primary key that includes the identifier of the parent (e.g., Player and Item_Type).
Explanation
For example, a Player_Inventory table with columns Player, Item_Type, Item_Quantity and primary key (Player, Item_Type) avoids repeating groups and allows easy querying.
- 11
What is a functional dependency?
Model answer
A functional dependency, denoted by an arrow (ā), means that each value of the left-hand side (e.g., Player_ID) is associated with exactly one value of the right-hand side (e.g., Player_Rating).
Explanation
Functional dependencies are used to identify how attributes relate to the primary key, which is crucial for achieving higher normal forms.
- 12
What is the informal definition of Second Normal Form?
Model answer
Second Normal Form requires that every non-key attribute in a table be dependent on the entire primary key, not just part of it.
Explanation
If a non-key attribute depends only on a part of a composite key, the table must be decomposed to eliminate that partial dependency.
- 13
Why does a table that stores Player_Rating alongside inventory data violate Second Normal Form?
Model answer
Player_Rating depends only on Player (part of the composite key), not on the entire primary key (Player, Item_Type), creating a part-key dependency that violates 2NF.
Explanation
This partial dependency leads to anomalies because the rating must be repeated for every inventory row of the same player, risking inconsistencies.
- 14
What is a deletion anomaly?
Model answer
A deletion anomaly occurs when deleting a row inadvertently removes important information about an entity that is not directly related to the deletion.
Explanation
In the Player_Inventory example, deleting a player's last inventory row also deletes their Player_Rating, even though the rating is about the player, not the inventory.
- 15
What is an update anomaly?
Model answer
An update anomaly occurs when updating some but not all rows carrying the same fact leads to data inconsistency.
Explanation
If a player's rating is updated in only one of their multiple inventory rows, the database shows contradictory ratings for the same player.
- 16
What is an insertion anomaly?
Model answer
An insertion anomaly occurs when you cannot insert data about an entity because other required data is missing.
Explanation
A new player with no inventory cannot be added to the Player_Inventory table, so their rating cannot be recorded.
- 17
How can you fix a table that fails Second Normal Form?
Model answer
Split the table into two or more tables so that each non-key attribute depends on the entire primary key in its own table.
Explanation
For the Player_Inventory example, create a separate Player table (with Player_ID and Player_Rating) and keep only inventory-specific attributes in Player_Inventory.
- 18
What is a transitive dependency?
Model answer
A transitive dependency occurs when a non-key attribute depends on another non-key attribute, which itself depends on the primary key.
Explanation
In the Player table, Player_Rating depends on Player_Skill_Level, which depends on Player_ID, creating a transitive dependency that violates 3NF.
- 19
What is Third Normal Form?
Model answer
Third Normal Form requires that every non-key attribute in a table depend on the key, the whole key, and nothing but the key (no transitive dependencies).
Explanation
This rule ensures that every non-key attribute is directly dependent on the primary key, not through another non-key attribute.
- 20
How can you fix a table that violates Third Normal Form due to a transitive dependency?
Model answer
Remove the transitively dependent attribute (e.g., Player_Rating) from the table and create a new table that maps the intermediate attribute (Player_Skill_Level) to the final attribute.
Explanation
For the Player example, create a Player_Skill_Levels table that relates each skill level to its rating, and remove Player_Rating from the Player table.
- 21
What is the guideline for achieving Third Normal Form?
Model answer
Every non-key attribute in a table should depend on the key, the whole key, and nothing but the key.
Explanation
This simple guideline helps avoid both partial and transitive dependencies, normalizing the table to 3NF in most practical scenarios.
- 22
What is Boyce-Codd Normal Form (BCNF) and how does it relate to 3NF?
Model answer
BCNF strengthens 3NF by requiring that every attribute (not just non-key) depend on the key, the whole key, and nothing but the key. In practice, BCNF almost always aligns with 3NF for real-world tables.
Explanation
The difference arises only when a table has multiple overlapping candidate keys; otherwise, a table in 3NF is also in BCNF.
- 23
What is a multivalued dependency and how is it denoted?
Model answer
A multivalued dependency occurs when one attribute determines a set of values for another attribute, independent of other attributes. It is denoted with a double-headed arrow (ā ).
Explanation
For example, in the DesignMyBirdhouse.com example, Model determines a set of Colors and a set of Styles, creating two multivalued dependencies.
- 24
What does Fourth Normal Form require?
Model answer
Fourth Normal Form requires that the only multivalued dependencies allowed in a table are those that are dependencies on the key.
Explanation
If a multivalued dependency exists on a non-key attribute, the table must be decomposed into multiple tables to eliminate the anomaly-prone structure.
- 25
How can a table violating Fourth Normal Form be fixed?
Model answer
Split the table into separate tables, each representing one of the independent multivalued dependencies, with the key as the common attribute.
Explanation
For the birdhouse example, create two tables: Model_Colors_Available (Model, Color) and Model_Styles_Available (Model, Style), both having Model as part of the key.
- 26
What is the defining characteristic of a table in Fifth Normal Form?
Model answer
A table is in Fifth Normal Form if it cannot be logically described as the result of joining two or more simpler tables together.
Explanation
If a table can be decomposed into smaller tables without loss of information, it is not in 5NF; decomposition eliminates the possibility of update anomalies.
- 27
Give an example of a situation where a table in Fourth Normal Form still needs Fifth Normal Form decomposition.
Model answer
The ice cream preferences table (Person, Brand, Flavor) can be decomposed into three tables: Brand_Flavor, Person_Brand, and Person_Flavor, even though it is in 4NF, to avoid insertion anomalies when updating likes.
Explanation
Without decomposition, adding a new brand like for a person requires multiple rows; missing one creates inconsistency. The three-table design prevents this by storing independent facts separately.
- 28
Summarize the key rule for First Normal Form.
Model answer
First Normal Form prohibits: (1) using row order to convey meaning, (2) mixing data types in the same column, (3) lacking a primary key, and (4) storing repeating groups.
Explanation
Adhering to these rules ensures that tables are atomic and have a unique identifier for each row, which is the foundation for higher normal forms.

Ask anything
We've read this whole study set, so questions about it get the best answers.