CS 320: Database Management Systems

Functional Dependencies

Ge (Frank) Xia, CS, Lafayette College

 

Adapted from lecture notes by Prof. Ullman @ Stanford

Functional Dependencies

Functional Dependencies

Example


Example Data

FD's With Multiple Attributes

Keys of Relations

Example

Example, Cont.

E/R and Relational Keys

Example Data

Where Do Keys Come From?

More FD's From "Physics"

Inferring FD's

Inference Test

Inference Test - (2)

Closure Test

In a picture

Finding All Implied FD's

Why?

Basic Idea

Simple Algorithm

A Few Tricks

Example

Example --- Continued

A Geometric View of FD's

Example: R(A,B)

An FD is a Subset of Instances

Example: A -> B for R(A,B)

Representing Sets of FD's

Example

Implication of FD's

Example