Normalization Flashcards

1
Q

1NF

A

Atomic and single-valued columns (values in cells must not be tables).
No composite or multi-valued attribute types.

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

Relational Database Prerequisite

A

Each row must have a primary key, which uniquely identifies each row.

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

2NF

A

Satisfies 1NF and no partial functional dependencies of non-prime attributes on candidate keys

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

Why Normalize (What is the goal)

A
  1. Minimize update, insertion, and deletion anomalies.

2. Minimize redesign when extending Database structure.

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

To get to 1NF

A

For any column with multi-valued or composite values, create a second table with a Foreign key to the Primary key of the original table and the values as single rows in the new table.

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

To get to 2NF

A

Set up a new relation for each partial key together with its dependent attribute types. Keep a relation with the original table through a primary key

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

3NF

A

Satisfies 2NF and no non-prime attribute type is transitively dependent on the primary key.

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

To get to 3NF

A

Set up a new relation that includes the non-key attribute types that functionally determine the other non-key attribute types.

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

BCNF (Boyce-Codd)

A

3NF and for each of its non-trivial functional dependencies X->Y, X is a superkey. X is either a candidate key or a superset thereof.

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

4NF

A

Every non-trivial multi-valued dependency begins with a superkey

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

What is Denormalization

A

Denormalization refers to a technique which is used to access data from higher to lower forms of a database. It helps the database managers to increase the performance of the entire infrastructure as it introduces redundancy into a table. It adds the redundant data into a table by incorporating database queries that combine data from various tables into a single table.

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