h Flashcards

(30 cards)

1
Q

What is the purpose of normalization?

A

To reduce data duplication and enhance data integrity

Normalization aims to organize a database to minimize redundancy and ensure data integrity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a transitive dependency?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Boyce-Codd Normal Form (BCNF)?

A

A stricter version of 3NF

BCNF addresses certain types of anomalies not handled by 3NF.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following is NOT a characteristic of functional dependencies?

A

Redundancy

Functional dependencies are defined by properties like reflexivity, transitivity, and union, but not redundancy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the main goal of the third normal form (3NF)?

A

To prevent transitive dependencies

3NF ensures that every non-key attribute is fully functionally dependent on the primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is a candidate key?

A

A key that can uniquely identify a record

Candidate keys are potential primary keys that can uniquely identify records in a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which normal form requires that all functional dependencies be fully functional?

A

2NF

2NF eliminates partial dependencies of non-key attributes on the primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a primary key?

A

A unique identifier for a table

A primary key ensures that each record in a table can be uniquely identified.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is a violation of 2NF?

A

A composite primary key with non-key attributes

2NF requires that all non-key attributes are fully functionally dependent on the entire primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the outcome of normalization?

A

Enhanced data integrity

Normalization leads to a more reliable database structure with reduced data anomalies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following describes a surrogate key?

A

A system-generated unique identifier

Surrogate keys are often used in databases when natural keys are not available or suitable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is denormalization?

A

The introduction of redundancy for performance purposes

Denormalization is used to improve database performance, especially in read-heavy environments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following statements is true about functional dependencies?

A

They can exist without primary keys.

Functional dependencies can be established even when a primary key is not defined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which normal form eliminates transitive dependencies?

A

3NF

3NF ensures that non-key attributes do not depend on other non-key attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the main purpose of using composite keys?

A

To uniquely identify records when a single attribute is insufficient

Composite keys combine multiple attributes to form a unique identifier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a functional dependency closure?

A

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.

17
Q

Which normalization form does not allow any multi-valued dependencies?

A

4NF

4NF addresses multi-valued dependencies to ensure data is organized correctly.

18
Q

What signifies a relation being in 1NF?

A

All attributes are atomic

1NF requires that each attribute contains only indivisible values.

19
Q

What is a foreign key?

A

A key that links two tables together

Foreign keys establish relationships between tables by referencing primary keys in other tables.

20
Q

Which of the following is an advantage of normalization?

A

Reduced redundancy

Normalization minimizes duplicate data and helps maintain data integrity.

21
Q

What is the main goal of functional dependency analysis?

A

To identify relationships among attributes

Understanding functional dependencies aids in database design and normalization.

22
Q

In which normal form can a relation have no non-prime attributes?

A

BCNF

BCNF requires that every determinant in a functional dependency is a candidate key.

23
Q

In relation to database design, what does ‘lossless decomposition’ refer to?

A

Breaking down a table without losing data

Lossless decomposition maintains the original data when dividing tables.

24
Q

Which normal form is achieved by eliminating multi-valued dependencies?

A

4NF

4NF addresses scenarios where an attribute can have multiple values independently of other attributes.

25
What does it mean for a database to be in BCNF?
Every determinant is a candidate key ## Footnote BCNF is stricter than 3NF and ensures no anomalies due to functional dependencies.
26
Which of the following is an example of a transitive dependency?
A → B and B → C implies A → C ## Footnote Transitive dependencies can lead to redundancy and anomalies in databases.
27
Which of the following is a disadvantage of denormalization?
Reduced data integrity ## Footnote Denormalization can introduce anomalies and inconsistencies in the data.
28
What does it mean for a database to be in 2NF?
No partial dependencies ## Footnote 2NF ensures that all non-key attributes depend on the whole primary key, not just part of it.
29
Which normal form does not allow any transitive dependencies?
3NF ## Footnote 3NF specifically addresses the elimination of transitive dependencies among attributes.
30
Why is denormalization sometimes used in database design?
To enhance performance for read-heavy applications ## Footnote Denormalization can speed up query performance by reducing the number of joins needed.