Normalisation (Week 12 Test) Flashcards
What is the purpose of normalization?
To group attributes into relations to minimize data redundancy and reduce file storage space required by base relations
What are the three reasons to normalize a database?
- Minimize duplicate data
- Minimize or avoid update anomalies
- Simplify queries to the database
What is redundancy in the context of databases?
Storing information redundantly, which wastes storage, decreases performance, and complicates data maintenance
What is an update anomaly?
Problems that arise from redundant information in tables, which can lead to inconsistent data
What is an insertion anomaly?
Occurs when a new record cannot be added without including redundant data or violating entity integrity
What is a deletion anomaly?
Occurs when deleting a record inadvertently removes important data about other entities
What is a modification anomaly?
Occurs when changes to data must be made in multiple places due to redundancy, risking inconsistency
What is a functional dependency?
A relationship where one attribute determines another; if A is known, B can be uniquely identified
How do you recognize the quality of relations design?
By identifying functional dependencies and ensuring the tables meet normalization requirements
What are the most commonly used normal forms?
- 1NF
- 2NF
- 3NF
What is the lossless-join property?
Ensures that any instance of the original table can be identified from corresponding instances in the smaller tables
What is the dependency preservation property?
Ensures that a constraint on the original table can be maintained by enforcing some constraint on each of the smaller tables
What is the process of normalization?
A formal technique for analyzing tables based on their primary keys and functional dependencies to decompose unsatisfactory tables
What is a normal form?
A condition using keys and functional dependencies of a relation/table to determine whether a relation schema is in a particular normal form
What are the higher normal forms beyond 3NF?
- Boyce–Codd Normal Form (BCNF)
- 4NF
- 5NF
True or False: Most of the time, you can stop at 3NF for good database design.
True
Fill in the blank: The technique of normalization involves a set of ______ to test individual tables.
rules
What is the main goal of decomposing a larger table into smaller tables?
To eliminate redundancy and prevent update anomalies
What happens if updates are not carried out in a poorly structured table?
The database may become inconsistent
How can one find functional dependencies in a relation?
By understanding the meaning of attributes and checking if one attribute consistently determines another
What is the determinant in a functional dependency?
An attribute or a group of attributes on the left-hand side of the functional dependency arrow
What is the impact of data redundancy on performance?
It decreases performance due to the increased effort needed for searching, sorting, and filtering data
What is a functional dependency?
An attribute or a group of attributes on the left-hand side of the functional dependency arrow.
What does the notation A → B imply in functional dependencies?
A determines B