Function Dependencies & Normalization Flashcards

1
Q

Types of update anomalies

A

Insertion, Deletion, Modification

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

Functional Dependencies

A

Given X->Y, the attributes X will determine the attributes Y uniquely.

Y is functionally dependent on X
X functionally determines Y

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

Full functional dependencies

A

Given X->Y, there can be no attributes taken out of X such that X can still determine Y

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

1NF

A

All domain values in R are atomic.

In other words, no nested values, lists of attributes etc.

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

2NF

A

R is in 1NF AND every non-key attribute if fully dependent on the primary key.

In other words, each non-candidate key needs to be only identified by the entire primary key, not just part of it.

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

3NF

A

R is in 2NF AND every non-key attribute is non-transitively dependent on the primary key.

In other words, there are not any attributes that depend on the status of other non-prime attributes

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

BCNF

A

Boyce-Codd Normal Form:

Every functional dependency of the relation, R, is determined by primary key(s) only.

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

Superkey

A

Attributes that uniquely identity a tuple

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

Key

A

A minimal superkey

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

Candidate Key

A

A key that could uniquely identity a relation

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

Alternate key

A

A secondary key that could have been the primary key

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

Foreign key

A

A key that maps to another entity

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

Natural Key

A

Keys that exist in the real world, ssn,

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

Composite key

A

Keys with two or more attributes

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

Surrogate Key

A

Key with no real world meaning, opposite of a natural key

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

Surrogate Key VS Natural Key

A

When choosing a Primary Key it is best to use a natural key.

17
Q

Non-loss decomposition

A

When a relation is decomposed, can it be composed again without loss of any data.

18
Q

4NF

A

When a relation has multi-valued dependancies

19
Q

5NF

A

When a relation has join dependencies