Lecture 2 - Functional Dependency Flashcards

1
Q

What is functional dependency?

A

is a formal metric of the degree of goodness of relational schema.

-> functional dependency is a constraint derived from the relationship between attributes

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

What is functional dependency in simple terms?

A

Given a relation, an attribute X functionally determines an attribute
Y, if a value of X determines a unique value for Y. i.e. X can determine Y

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

Notation for functional dependency (e.g. X to Y)?

A

X->Y

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

Mathematical form of functional dependency?

A

for any two tuples t1 and t2:
If t1[X] = t2[X] then t1[Y] = t2[Y]

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

Functional dependency is specific over how many tuples in a relation?

A

All of them

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

Candidate Key Principle of FD?

A

If K is a Candidate Key, then K should functionally determine
all attributes in relation R

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

Decomposition rule for FD?

A

If X -> {Y,Z} then X -> Y and X -> Z

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

Additive rule for FD?

A

If X -> Y and X -> Z then X -> {Y,Z}

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

Transitive rule for FD?

A

If X → Y and Y → Z then X → Z

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

Reflexive rule for FD?

A

If Y ⊆ X then X → Y

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

Augmentation rule for FD?

A

If X → Y then X U {Z} → Y U {Z}

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

What does -> mean?

A

implication

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

What does <-> mean?

A

equivalence

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