title: 08-Relational-Database-Design-Functional-Dependency
date: 2023-11-03
status: DONE
tags:
- DataBase
- NOTE
- Lec8
author:
- AllenYGY
created: 2023-12-28T00:16
updated: 2024-03-21T23:28
publish: True
Relational-Database-Design-Functional-Dependency
Functional dependencies are some constraints on the set of legal relations.
The constraint is that the value for a certain set of attributes uniquely determines the value for another set of attributes. 约束条件是一组属性的值唯一确定另一组属性的值
A functional dependency is a generalization of the notion of a key. 功能依赖关系是键概念的泛化
Functional dependencies can express constraints that cannot be expressed using superkeys.
For example:
We can use functional dependency to hold
But would not expect the following to hold:
we can use functional dependency to specify constraints on the set of legal relations
Trivial
A functional dependency is trivial if it is satisfied by all instances of a relation.
Equivalently,
If
Example:
The set of all functional dependencies logically implied by
This method is also apply in Attribute Closure.
For Union:
If
For Decomposition:
if
For pseudotransitivity
if