Normalization Flashcards

1
Q

Define Normalization

A

→ is a database design technique that reduces data redundancy and eliminates undesirable characteristics like Insertion, Update and Deletion Anomalies.
→ Normalization rules divides larger tables into smaller tables and links them using relationships.
→ Normalization is typically carried out through a series of steps called normal forms:
○ 1NF (First Normal Form)
○ 2NF (Second Normal Form)
○ 3NF (Third Normal Form)
○ BCNF (Boyce-Codd Normal Form)
○ 4NF (Fourth Normal Form)
○ 5NF (Fifth Normal Form)
○ 6NF (Sixth Normal Form)

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

1NF (First Normal Form)

A

→ Each table cell should contain a single value.
→ Each record needs to be unique.

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

Primary Key

A

→ A primary is a single column value used to identify a database record uniquely.
→ It has following conditions:
○ A primary key cannot be NULL
○ A primary key value must be unique
○ The primary key values should rarely be changed
○ The primary key must be given a value when a new record is inserted.

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

Composite Key

A

→ A composite key is a primary key composed of multiple columns used to identify a record uniquely

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

Functional Dependency

A

In a functional dependency X→YX→Y, where X and Y are sets of attributes, the value of X uniquely determines the value of Y. In other words, if you know the value of X, you can predict the value of Y.

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

2NF (Second Normal Form)

A

→ Be in 1NF
→ All non-key attributes are fully functionally dependent on the entire composite primary key.

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

Foreign Key

A

→ Foreign Key references the primary key of another Table! It helps connect your Tables
→ A foreign key can have a different name from its primary key
→ It ensures rows in one table have corresponding rows in another
→ Unlike the Primary key, they do not have to be unique. Most often they aren’t
→ Foreign keys can be null even though primary keys can not

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

Transitive Functional Dependency

A

A transitive functional dependency is when changing a non-key column, might cause any of the other non-key columns to change.

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

3NF (Third Normal Form)

A

→ Be in 2NF
There are no transitive dependencies among the non-key attributes.

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

Super Key

A

→ A super key is any set of attributes (one or more) that can uniquely identify a tuple in a table.
→ It may include more attributes than necessary to uniquely identify tuples.
→ Super keys are used to understand the possible ways of uniquely identifying data but may not be the most minimal or efficient.

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

BCNF (Boyce-Codd Normal Form)

A

→ an extension of 3NF
→ A table is in BCNF if every functional dependency X → Y, X is the super key of the table.

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

Candidate Key

A

→ A candidate key is a minimal super key, meaning it is a subset of a super key, and removing any attribute from it would result in a loss of uniqueness.
→ Candidate keys are potential choices for the primary key of a table.

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