Normalization (P2) Flashcards

1
Q

Normalization

A

When larger tables in a database are divided into smaller tables to improve data integrity and reduce data redundancy.

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

3 outlined reasons to use normalization

A
  • Reduced data redundancy (saves up memory space)
  • Reduced table complexity (Makes querying less error-prone)
  • Makes sure data is stored logically (Makes querying more efficient)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

1NF - 5 characteristics

A
  • Eliminate duplicate attributes
  • Eliminate attributes with multiple values (only atomic attributes)
  • Create separate tables for each group of related data
  • Ensure that there is a primary/composite key
  • Ensure that all records are unique
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

2NF - 2 characteristics

A
  • Meets all requirements for 1NF
  • Eliminates partial dependency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

3NF - 2 characteristics

A
  • Meet all requirements for 2NF
  • Eliminates transitive dependency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Partial Dependency

A

When a non-prime attribute is dependent on only part of a composite key

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

Transitive Dependency

A

When a non-prime attribute is dependent on another non-prime attribute which is dependent on the primary key

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

How to fix partial dependency, transitive dependency and what is similar in both solutions?

A

Partial dependency? 🔄 Split off attributes that depend on part of a composite key.

Transitive dependency? 🔁 Split off attributes that depend on another non-key attribute.

In both cases? ✅ Use foreign keys to keep the relationships intact.

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