Normalization of Databases Flashcards

1
Q

What is Database Normalization?

A

Database Normalization is a systematic approach to organizing and connecting data in a relational database and a sort of refinement process for coming up with the best possible database structures as you go through the different normal forms.

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

Main benefits of Database Normalization

A

Eliminates data redundancy (repetitive data) and overall finds the most efficient and refined data structure.

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

What is link entity?

A

a link entity serves as an intermediary to manage many-to-many relationships between other entities in a database schema

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

How to do 1NF

A
  • A cell must never contain more than one value (atomic values) (e.g. column with 2 values like skill id, skill name must be defined as 2 individual columns)
  • There must be a primary key meaning every row must be unique (e.g. adding Employee ID)
  • Each column name must be unique
  • There must be no repeating columns, they must either be removed or put into a new table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to do 2NF

A
  • Table(s) must already be in 1NF
  • All data must depend on the Primary Key (e.g. address, name would all depend on employee id but column “skill id” and “skill name” would not since that can exist by its own, therefore you must make a new table with that data or remove it)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to do 3NF

A
  • Table(s) must already be in 2NF
  • The primary key must define all non-key columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Foreign key

A

Any primary key that links spreadsheets or tables becomes a foreign key.

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