Normalization Flashcards

1
Q

a process that involves the elimination of inappropriate functional dependencies in a relation

A

Normalization

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

it takes a relational schema through a series of tests to certify whether or not it belongs to a certain normal form

A

Normalization

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

explain functional dependency of normalization

A

denoted by X → Y, is a relationship between attributes.

The attribute Y is said to be functionally dependent on attribute X if the value of X determines the value of Y. (or if we know the value of X we will know the value of Y).

Attribute X is called a determinant of attribute Y

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

who is Dr. Edgar F. Codd

A

the originator of the relational model, proposed the three normal forms, which he called first, second and third

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

It is a table/relation that contains one or more repeating groups.

A

UNNORMALIZED FORM (UNF)

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

The state prior to 1NF is called the Unnormalized Form (UNF).

A

UNNORMALIZED FORM (UNF)

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

A relation in which the intersection of each row and column contains one and only one value

A

First Normal Form (1NF)

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

It is considered to be part of the formal
definition of a relation (disallowing multivalued attributes)

A

First Normal Form (1NF)

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

First Normal Form (1NF)

A

● A relation in which the intersection of each row and column contains one and only one value

● It is considered to be part of the formal
definition of a relation (disallowing multivalued attributes)

● To transform the UNF to 1NF, we need to identify and remove repeating groups within the table

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

a relation is in 2NF if it is in 1NF and every non-key attribute is fully functionally dependent on the primary key

A

SECOND NORMAL FORM (2NF)

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

a relation that is in 1NF will be in 2NF if any one of the following conditions apply:

A

○ the primary key consists of only one attribute

○ no non-key attribute exists in the relation (all attributes are keys)

○ every non-key attribute is functionally dependent on the full set of primary key attributes

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

SECOND NORMAL FORM (2NF)

A

a relation is in 2NF if it is in 1NF and every non-key attribute is fully functionally dependent on the primary key

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

a relation is in 3NF if it is in 2NF and no transitive dependencies exist

A

THIRD NORMAL FORM

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

what is transitive dependency

A

is a functional dependency between two (or more) non-key attributes in a relation

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

functional dependency of the THIRD NORMAL FORM

A

X → Y in a relation R is a transitive dependency if there is a set of attributes Z
that is not a subset of any key of R, and both functional dependencies X → Z and Z → Y hold.

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

a rule to transform a relation in 3NF

A

decompose the relation by separating the attributes that caused the transitive dependency to exist.

17
Q

why decompose the relation by separating the attributes that caused the transitive dependency to exist.

in:
SALES (CustomerNo, Name, Salesperson)
SPERSON (Salesperson, Region)

A

in the relation SALES, we removed the attributes Salesperson and Region, and grouped them together to compose a
new relation. The attribute Salesperson was retained in the original relation and acts as a foreign key.