h Flashcards
(30 cards)
What is the purpose of normalization?
To reduce data duplication and enhance data integrity
Normalization aims to organize a database to minimize redundancy and ensure data integrity.
What is a transitive dependency?
A dependency of a non-key attribute on another non-key attribute
Transitive dependencies occur when one non-key attribute depends on another non-key attribute through a primary key.
What is Boyce-Codd Normal Form (BCNF)?
A stricter version of 3NF
BCNF addresses certain types of anomalies not handled by 3NF.
Which of the following is NOT a characteristic of functional dependencies?
Redundancy
Functional dependencies are defined by properties like reflexivity, transitivity, and union, but not redundancy.
What is the main goal of the third normal form (3NF)?
To prevent transitive dependencies
3NF ensures that every non-key attribute is fully functionally dependent on the primary key.
Which of the following is a candidate key?
A key that can uniquely identify a record
Candidate keys are potential primary keys that can uniquely identify records in a table.
Which normal form requires that all functional dependencies be fully functional?
2NF
2NF eliminates partial dependencies of non-key attributes on the primary key.
What is a primary key?
A unique identifier for a table
A primary key ensures that each record in a table can be uniquely identified.
Which of the following is a violation of 2NF?
A composite primary key with non-key attributes
2NF requires that all non-key attributes are fully functionally dependent on the entire primary key.
What is the outcome of normalization?
Enhanced data integrity
Normalization leads to a more reliable database structure with reduced data anomalies.
Which of the following describes a surrogate key?
A system-generated unique identifier
Surrogate keys are often used in databases when natural keys are not available or suitable.
What is denormalization?
The introduction of redundancy for performance purposes
Denormalization is used to improve database performance, especially in read-heavy environments.
Which of the following statements is true about functional dependencies?
They can exist without primary keys.
Functional dependencies can be established even when a primary key is not defined.
Which normal form eliminates transitive dependencies?
3NF
3NF ensures that non-key attributes do not depend on other non-key attributes.
What is the main purpose of using composite keys?
To uniquely identify records when a single attribute is insufficient
Composite keys combine multiple attributes to form a unique identifier.
What is a functional dependency closure?
The set of all attributes that can be functionally determined by a set of attributes
This closure helps in understanding the implications of functional dependencies in a database.
Which normalization form does not allow any multi-valued dependencies?
4NF
4NF addresses multi-valued dependencies to ensure data is organized correctly.
What signifies a relation being in 1NF?
All attributes are atomic
1NF requires that each attribute contains only indivisible values.
What is a foreign key?
A key that links two tables together
Foreign keys establish relationships between tables by referencing primary keys in other tables.
Which of the following is an advantage of normalization?
Reduced redundancy
Normalization minimizes duplicate data and helps maintain data integrity.
What is the main goal of functional dependency analysis?
To identify relationships among attributes
Understanding functional dependencies aids in database design and normalization.
In which normal form can a relation have no non-prime attributes?
BCNF
BCNF requires that every determinant in a functional dependency is a candidate key.
In relation to database design, what does ‘lossless decomposition’ refer to?
Breaking down a table without losing data
Lossless decomposition maintains the original data when dividing tables.
Which normal form is achieved by eliminating multi-valued dependencies?
4NF
4NF addresses scenarios where an attribute can have multiple values independently of other attributes.