Chapter 6 Flashcards

1
Q

What is normalization in databases?

A

A set of concepts that is used to eliminate data redundancy and data anomalies from a database.

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

What are the normal forms?

A

1

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

What is the difference between 1NF, 2NF, 3NF, BCNF, and 4NF?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you transform normal forms into higher and lower forms?

A

1

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

When should you need to use denormalization?

A

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.

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

Explain the data-modeling checklist for ERD’s

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is partial dependency?

A

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.

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

What is transitive dependency?

A

A two step dependency. If X -> Y and Y -> Z while X is the primary key, then it is a transitive dependency.

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