Professor Week 5 Flashcards

1
Q

Normalization

A

Decomposing relations to avoid anomalies when inserting, updating or deleting data.

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

Anomalies in Data

A

Redundancy, Update, Delete, Insert

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

What is functional dependency?

A

When one value determines another value and only determines one value.

EmployeeID -> name
EmployeeID -> dept. name
emp_ID -> salary

OR empID -> name, dept_name. salary

Determinant -> employeeID

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

What is a candidate key?

A

Determinant that determines the rest of the values.

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

Second Normal Form

A

In 1NF and…
all of its non-key attributes are dependent on all of the key

OR

the primary key consists of only of one attribute

OR

No non-key attributes exist in the relation (all of the attributes are part of the key)

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

Non-key attributes

A

all attributes that are not part of the primary key

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

Dependent

A

Attributes appear on the right side of a function dependency

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

Partial dependencies

A

A(1,2,3,4) 1 and 2 are primary key
fds:
1,2 -> 3,4 is a full dependency
1 ->3 is a partial dependency and breaks 2NF

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

Third Normal Form

A

If it is in 2NF and is free of transitive dependency

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

Transitive Dependency Format

A

Attribute A -> Attribute B -> Attribute C

A is typically primary key
B and C are non-key attributes

Violation: when a non key attr is determining another non-key attr

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