Functional Dependencies and Attribute Closures




CS157a

Chris Pollett

Sep 18, 2023

Outline

Introduction

Keys of a Relation

Reasoning About Functional Dependencies

Splitting Combining Rule

Trivial Functional Dependencies

Computing the closure of Attributes under FDs

Example of Computing the Closure

Quiz

Which of the following is true?

  1. A relational algebra selection operation applied to a relation might output a relation with fewer rows.
  2. It is impossible to define theta-join using the other relational algebra operations.
  3. Expressing relational algebra constraints using the form `R = emptyset` allows one to express a wider range of constraints than expressing constraints in the form `R subseteq S`.

Proof that the Closure Algorithm Works

Proof of (1)

Proof of (2)