[Relational Theory] [Carol's HomePage]
Coloured Line

FD Inference Rules

Coloured Line

Coloured Line

Definitions

Let  R  be the set of attributes in a given relation
  A  be a subset of R
  B  be a subset of R
  C  be a subset of R
  D  be a subset of R

Reflexivity

If B is a subset of A
then A → B

Augmentation

If B is a subset of A and  C  →  D
then A, C  →  B, D

Transitivity

If A → B  and  B → C
then A → C

Pseudo-transitivity

If A → B and B, C →  D
then A, C → D

Union

If A → B and  → C
then A  →  B, C

Decomposition

If A → B, C
then A → B  and A → C

Self-determination

A → A

[Top]

Coloured Line

Examples


CATALOGUE (Supplier-id, Part-no [pk], Supplier-state, Qty-on-hand, Qty-on-order)

Supplier-id, Part-no  →  Qty-on-order

Part-no  →  Qty-on-hand

Supplier-id  →  Supplier-state


Supplier-id, Qty-on-hand  →  Qty-on-hand

is an example of reflexivity

{Qty-on-hand} is a subset of {Supplier-id, Qty-on-hand}


Part-no, Supplier-id  →  Supplier-state

is an example of augmentation

the null set, denoted { } or Ø, is a subset of {Part-no}
Supplier-id   →   Supplier-state


The fact that the FD   Part-no, Supplier-id  →  Supplier-state   can be derived from the given FDs
allows us to say that {Part-no, Supplier-id} is a valid candidate key for CATALOGUE


Coloured Line


ACCOUNT (Account-no [pk], Type, Credit-limit, Balance)

Account-no  →  Type

Account-no  →  Balance

Type  →  Credit-limit


Account-no  →  Credit-limit

is an example of transitivity

Account-no  →  Type
Type  →  Credit-Limit


The fact that the FD   Account-no  → Credit-limit   can be derived from the given FDs
allows us to say that {Account-no} is a valid candidate key for ACCOUNT


Coloured Line

We are given a set of attributes {A, C, T, V} which we put in a relation which we call ACT_FIVE
We ask a friend to specify some FDs


ACT_FIVE (A, C, T, V)

A, C → T
V  → C

A, V  → T

is an example of pseudo-transitivity

V  → C
A, C → T


The derived FD   A, V → T  
allows us to demonstrate that {A, V} is a valid candidate key for ACT_FIVE


Coloured Line


ACT_UP (a, c, t, u, p)

a → c

a → t

a → u, p


a → c, t

is an example of union

a  → c
a → t


a → u

a → p

is an example of decomposition

a → u, p


[Top]

Coloured Line

Carol Edmondson   <carol@cs.anu.edu.au>
URL: http://computer/people/Carol.Edmondson/theory/FD_InferenceRules.shtml
Last modified: 08 December 2005 16:19:38 EST