FDs and Table Decomposition




CS157a

Chris Pollett

Sep 24, 2018

Outline

Introduction

Armstrong's Axioms

Minimal Basis of FDs

Projecting FDs

Example Projecting FDs

Quiz

Which of the following is true?

  1. There are relational algebra constraints of the form `R subset S` which are not equivalent to relational algebra constraints of the form `T = emptyset`. Here `R, S, T` are arbitrary relational algebra expressions.
  2. A functional dependency (FD) on a relation `R` is a statement of the form "If two tuples of `R` agree on all of the attributes `A_1, A_2, ..., A_n`, then they will agree on the attributes `B_1, ..., B_m`.
  3. The closure algorithm from class of a set of attributes under a set of FDs always runs in linear time in the number of attributes.

Design of Relational DB Schemas

Anomalies to Avoid in DB Design

Decomposing Relations

Boyce-Codd Normal Form (BCNF)