Database Normalization Basics
- 31Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of database normalization?
What is the primary purpose of database normalization?
31 questions
- 1
What is the primary purpose of database normalization?
- A
To maximize storage efficiency by allowing duplicate data
- B
To ensure all tables have at least one index
- C
To structure a table so that redundant information cannot be expressed
- D
To enforce that every column has a default value
Correct answer
CTo structure a table so that redundant information cannot be expressed
Explanation
Normalization structures a table so that it cannot express redundant information, which helps maintain data integrity.
- A
- 2
Which of the following is NOT a benefit of proper database normalization?
- A
Easier to enhance and extend
- B
Faster query performance on all queries
- C
Easier to understand
- D
Protection from insertion, update, and deletion anomalies
Correct answer
BFaster query performance on all queries
Explanation
Normalization can sometimes reduce query performance due to more joins; speed is not a guaranteed benefit.
- A
- 3
In the safety assessment analogy, achieving the next normal form is like:
- A
Building a completely new bridge
- B
Reducing the number of safety checks
- C
Adding more lanes to the bridge
- D
Passing a stricter safety assessment for a bridge
Correct answer
DPassing a stricter safety assessment for a bridge
Explanation
Normal forms are analogous to safety levels: each higher form requires passing a stricter assessment.
- A
- 4
Which of the following is a violation of First Normal Form?
- A
Creating an index on a column
- B
Having a column that stores integers and strings
- C
Using a primary key that consists of two columns
- D
Storing dates in a separate table
Correct answer
BHaving a column that stores integers and strings
Explanation
First Normal Form prohibits mixing data types within the same column.
- A
- 5
What is the problem with using row order to convey information in a table?
- A
It violates First Normal Form because row order is not guaranteed
- B
It simplifies indexing
- C
It is required for primary keys
- D
It improves query performance
Correct answer
AIt violates First Normal Form because row order is not guaranteed
Explanation
Row order in a relational database is arbitrary; using it to convey meaning violates First Normal Form.
- A
- 6
Why must every table in First Normal Form have a primary key?
- A
To allow multiple rows with the same identifier
- B
To satisfy a requirement of the SQL standard only
- C
To uniquely identify each row and prevent duplicate or contradictory rows
- D
To improve the speed of data retrieval
Correct answer
CTo uniquely identify each row and prevent duplicate or contradictory rows
Explanation
A primary key uniquely identifies each row and prevents insertion of duplicate or contradictory rows.
- A
- 7
Which of the following is an example of a repeating group violation of First Normal Form?
- A
Using a composite primary key
- B
Having a column that stores only integers
- C
Storing a player's name in one column and ID in another
- D
Storing a player's inventory as a single text string
Correct answer
DStoring a player's inventory as a single text string
Explanation
Storing a repeating group (like inventory items) as a single string lumps multiple values together, violating 1NF.
- A
- 8
In a normalized table, how should data about a player's inventory items be represented?
- A
One row per player with multiple columns for each item type
- B
A separate table for each item type
- C
One row per player-item-type combination with a quantity column
- D
A single text column listing all items
Correct answer
COne row per player-item-type combination with a quantity column
Explanation
Each unique combination of player and item type gets its own row, with a column for quantity, avoiding repeating groups.
- A
- 9
What type of anomaly occurs when deleting a row causes the loss of unrelated information?
- A
Deletion anomaly
- B
Update anomaly
- C
Insertion anomaly
- D
Referential integrity anomaly
Correct answer
ADeletion anomaly
Explanation
A deletion anomaly occurs when deleting a row removes facts about other attributes that are not directly related to the deleted row.
- A
- 10
An update anomaly can lead to:
- A
Violation of a foreign key constraint
- B
The same fact being represented inconsistently across rows
- C
Inability to insert a new row because of missing data
- D
Loss of data when a row is deleted
Correct answer
BThe same fact being represented inconsistently across rows
Explanation
An update anomaly occurs when updating some but not all occurrences of a fact leads to inconsistency.
- A
- 11
What is an insertion anomaly?
- A
Inserting a row with a null primary key
- B
The inability to insert a new row because some required data is missing
- C
Inserting a row that causes referential integrity violation
- D
Inserting duplicate rows accidentally
Correct answer
BThe inability to insert a new row because some required data is missing
Explanation
An insertion anomaly occurs when a row cannot be added because some attribute (like a rating) cannot be recorded due to missing dependent data.
- A
- 12
What is the rule for Second Normal Form?
- A
Each non-key attribute must be dependent on the entire primary key
- B
Each attribute must be dependent on the entire primary key
- C
Repeating groups must be removed
- D
No transitive dependencies allowed
Correct answer
AEach non-key attribute must be dependent on the entire primary key
Explanation
Second Normal Form requires that every non-key attribute is functionally dependent on the whole primary key, not just part of it.
- A
- 13
In the Player_Inventory table with columns (Player, Item_Type, Item_Quantity, Player_Rating), which column causes the violation of Second Normal Form?
- A
Item_Quantity, because it depends on both Player and Item_Type
- B
Player, because it is part of the primary key
- C
Item_Type, because it is part of the primary key
- D
Player_Rating, because it depends only on Player, not on Item_Type
Correct answer
DPlayer_Rating, because it depends only on Player, not on Item_Type
Explanation
Player_Rating depends only on Player, which is part of the primary key, causing a partial dependency that violates 2NF.
- A
- 14
What is the solution to bring the Player_Inventory table with Player_Rating into Second Normal Form?
- A
Split the table into a Player table and a Player_Inventory table
- B
Remove the Player_Rating column entirely
- C
Add more columns to the primary key
- D
Make Player_Rating part of the primary key
Correct answer
ASplit the table into a Player table and a Player_Inventory table
Explanation
Splitting the table so that Player_Rating goes into a separate Player table eliminates the partial dependency.
- A
- 15
Third Normal Form primarily addresses which type of dependency?
- A
Functional dependencies on the key
- B
Partial dependencies
- C
Transitive dependencies
- D
Multivalued dependencies
Correct answer
CTransitive dependencies
Explanation
Third Normal Form prohibits transitive dependencies, where a non-key attribute depends on another non-key attribute.
- A
- 16
In the Player table with columns (Player_ID, Player_Rating, Player_Skill_Level), which dependency causes a violation of Third Normal Form?
- A
Player_Rating depends directly on Player_ID
- B
Player_Rating depends on Player_Skill_Level, which depends on Player_ID
- C
Player_Skill_Level depends on Player_ID
- D
Player_ID depends on Player_Rating
Correct answer
BPlayer_Rating depends on Player_Skill_Level, which depends on Player_ID
Explanation
Player_Rating transitively depends on Player_ID through Player_Skill_Level, violating 3NF.
- A
- 17
What is the fix for a transitive dependency in Third Normal Form?
- A
Remove the attribute that causes the chain
- B
Create a separate table for the attributes involved in the transitive dependency
- C
Create a composite primary key
- D
Add more columns to the primary key
Correct answer
BCreate a separate table for the attributes involved in the transitive dependency
Explanation
Removing the transitive dependency by splitting the table so that each non-key attribute depends only on the key resolves the issue.
- A
- 18
The guideline 'Every attribute in a table should depend on the key, the whole key, and nothing but the key' describes which normal form?
- A
Third Normal Form
- B
Fourth Normal Form
- C
Boyce-Codd Normal Form
- D
Second Normal Form
Correct answer
CBoyce-Codd Normal Form
Explanation
This guideline, which drops 'non-key', defines Boyce-Codd Normal Form (BCNF), a slightly stronger version of 3NF.
- A
- 19
How does Boyce-Codd Normal Form differ from Third Normal Form?
- A
BCNF is weaker than 3NF
- B
BCNF only applies to tables with composite keys
- C
BCNF requires that even key attributes depend on the whole key, making it stricter
- D
BCNF allows transitive dependencies
Correct answer
CBCNF requires that even key attributes depend on the whole key, making it stricter
Explanation
BCNF requires that every attribute (including those that are part of a candidate key) depend on the whole key, which is slightly stricter than 3NF.
- A
- 20
In practice, how often does a table in Third Normal Form fail to be in Boyce-Codd Normal Form?
- A
Only when there are no primary keys
- B
Always, because BCNF is the same as 3NF
- C
Almost never, because it requires multiple overlapping candidate keys
- D
Frequently, because 3NF is weaker
Correct answer
CAlmost never, because it requires multiple overlapping candidate keys
Explanation
The only tables in 3NF that are not in BCNF are those with multiple overlapping candidate keys, which are exceedingly rare in practice.
- A
- 21
What is a multivalued dependency?
- A
A dependency where one attribute determines a set of values for another attribute
- B
A dependency that involves more than two attributes
- C
A dependency where one attribute determines exactly one value of another attribute
- D
A dependency between two different tables
Correct answer
AA dependency where one attribute determines a set of values for another attribute
Explanation
A multivalued dependency means that for a given value of one attribute, there is a set of associated values of another attribute, independent of other attributes.
- A
- 22
Fourth Normal Form forbids:
- A
Composite primary keys
- B
Functional dependencies that are not on the key
- C
Multivalued dependencies that are not on the key
- D
All multivalued dependencies
Correct answer
CMultivalued dependencies that are not on the key
Explanation
4NF allows only multivalued dependencies that are on the key (i.e., the key determines the set).
- A
- 23
In the DesignMyBirdhouse.com example, the table with columns Model, Color, Style violates Fourth Normal Form because:
- A
The table has no primary key
- B
The table is in Third Normal Form
- C
There are multivalued dependencies of Color and Style on Model, but Model is not the key
- D
Color and Style have a functional dependency on each other
Correct answer
CThere are multivalued dependencies of Color and Style on Model, but Model is not the key
Explanation
Both Color and Style have multivalued dependencies on Model (each model has a set of colors and a set of styles), but the primary key is all three columns, so Model is not a key, violating 4NF.
- A
- 24
How do you fix a Fourth Normal Form violation in the DesignMyBirdhouse example?
- A
Add more columns to the primary key
- B
Split the table into two tables: one for Model-Color pairs and one for Model-Style pairs
- C
Remove the Color column
- D
Make Model the primary key and keep all columns
Correct answer
BSplit the table into two tables: one for Model-Color pairs and one for Model-Style pairs
Explanation
Splitting into two tables eliminates the multivalued dependencies not on the key, making the design 4NF compliant.
- A
- 25
Fifth Normal Form is concerned with:
- A
Whether a table has a composite primary key
- B
Whether a table has multivalued dependencies
- C
Whether a table can be logically derived by joining other tables
- D
Whether a table has transitive dependencies
Correct answer
CWhether a table can be logically derived by joining other tables
Explanation
5NF requires that a table cannot be decomposed into smaller tables without losing information; it must not be possible to reconstruct it from joins of other tables.
- A
- 26
In the ice cream example, what was the mistake in the initial design?
- A
Combining brand-flavor, person-brand, and person-flavor information into a single table
- B
Not including a primary key
- C
Storing redundant brand information
- D
Using too many tables
Correct answer
ACombining brand-flavor, person-brand, and person-flavor information into a single table
Explanation
The mistake was conflating independent facts (which brands offer which flavors, which people like which brands, which people like which flavors) into one table, violating 5NF.
- A
- 27
What is the correct way to represent the ice cream information in Fifth Normal Form?
- A
Use a single table with all attributes
- B
Use two tables: Person_Preference and Brand_Flavor
- C
Use three separate tables: Brand_Flavor, Person_Brand, Person_Flavor
- D
Use a single table with a composite primary key of Person, Brand, Flavor
Correct answer
CUse three separate tables: Brand_Flavor, Person_Brand, Person_Flavor
Explanation
Representing each independent relationship as its own table ensures 5NF compliance and avoids anomalies.
- A
- 28
To be in Fifth Normal Form, a table must also be in:
- A
No other normal form is required
- B
Second Normal Form only
- C
Fourth Normal Form
- D
Third Normal Form only
Correct answer
CFourth Normal Form
Explanation
A table must satisfy all lower normal forms (1NF through 4NF) to be in 5NF.
- A
- 29
Which normal form prohibits partial dependencies?
- A
Second Normal Form
- B
Fourth Normal Form
- C
First Normal Form
- D
Third Normal Form
Correct answer
ASecond Normal Form
Explanation
Second Normal Form requires that every non-key attribute depend on the whole primary key, thus prohibiting partial dependencies.
- A
- 30
Which normal form is violated when a table lacks a primary key?
- A
Fourth Normal Form
- B
Second Normal Form
- C
Third Normal Form
- D
First Normal Form
Correct answer
DFirst Normal Form
Explanation
First Normal Form requires that every table have a primary key.
- A
- 31
The rule 'Every non-key attribute in a table should depend on the key, the whole key, and nothing but the key' defines:
- A
Second Normal Form
- B
First Normal Form
- C
Third Normal Form
- D
Boyce-Codd Normal Form
Correct answer
CThird Normal Form
Explanation
This is the classic definition of Third Normal Form, which prohibits both partial and transitive dependencies.
- A

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