Functional Dependancies Flashcards

1
Q

what is the definition of a functional dependency?

A

if A and B are attributes in relation R, A -> B if each value of A in R is associated with exactly one value of B
A is the determinant
B is the dependant set

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

what is a trivial functional dependency?

A

AB -> A is a trivial FD because the dependant set is a subset of the determinant

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

what is a partial functional dependency?

A

A -> B is a partial functional dependency if you can remove an attribute from A and the dependency still exists

AB -> C C

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

what is a full FD?

A

the ‘opposite’ of partial. if removing an attribute from the determinant results in the dependancy no longer existing, the FD is full

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

transitive?

A

A -> B
B -> C
therefore A -> C

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

what is a superkey? candidate key?

A

attributes K is a superkey of relation R if values for K can be used to uniquely identify a tuple

a candidate key is a minimal set of attributes that can uniquely identify: a minimal superkey

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

what is closure?

A

given a set F of functional dependancies, there are other FDs that are implied by F
e.g. transistivity A -> C

the set of all FDs logically implied by F is the closure of F, F+

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

what are armstrong’s axioms?

A

– if B <= A , then A -> B (reflexivity)
– if A -> B, then CA -> CB (augmentation)
– if A -> B, and B-> C, then A -> C (transitivity)
they are sound and complete
they generate only FDs that hold, and ALL the FDs that hold

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