Chapter 6 Flashcards
What is normalization in databases?
A set of concepts that is used to eliminate data redundancy and data anomalies from a database.
What are the normal forms?
1
What is the difference between 1NF, 2NF, 3NF, BCNF, and 4NF?
1NF: Table format, no repeating groups, and PK identified
2NF: 1NF and no partial dependencies
3NF: 2NF and no transitive dependencies
BCNF: Every determinant is a candidate key
4NF: 3NF and no independent multivalued dependencies
How do you transform normal forms into higher and lower forms?
1
When should you need to use denormalization?
Normalization has tiers, 2NF is better than 1NF, and 3NF is better than 2NF. But the higher tiers require more work and operations are needed so denormalization is sometimes done when the higher tiers aren’t needed. Denormalization however, increases the chance of data redundancy.
Explain the data-modeling checklist for ERD’s
- Each relation (table) should represent a single subject.
- Each row and column intersection only has one value.
- Data isn’t unnecessarily stored in more than one table.
- All nonprime attributes in a relation (table) are dependent on the primary key
- Each relation (table) has no insertion, update, or deletion anomalies, which ensures the integrity and consistency of the data.
What is partial dependency?
When only PART of the primary key determines the dependency. If a primary key is (A, B) and C has a dependency on B, then that’s a partial dependency.
What is transitive dependency?
A two step dependency. If X -> Y and Y -> Z while X is the primary key, then it is a transitive dependency.