Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Functional Dependencies
Data Modeling Tools
A number of popular tools that cover conceptual
modeling and mapping into relational schema
design. Examples: ERWin, S- Designer (Enterprise
Application Suite), ER- Studio, etc.
POSITIVES: serves as documentation of
application requirements, easy user
interface - mostly graphics editor support
– In other words, whenever two rows agree on their X value, they also
agree on their Y value.
– We write: X --> Y
(read “X functionally determines Y”, or “X arrows to Y”)
Or Y is associated with X
S# CITY P# QTY
SP
S1 London P1 100
S1 London P2 100
S2 Paris P1 200
S2 Paris P2 200
S3 Paris P2 300
S4 London P2 400
S4 London P4 400
S4 London P5 400
• Functional Dependencies:
– {S#} -> {CITY}
– {S#, P#} -> {QTY}
– {S#, P#} -> {CITY, QTY}
– {S#, P#} -> {S#, P#, CITY, QTY}
– {S#, P#, CITY, QTY} -> {S#, P#, CITY, QTY}
Dr. Ejaz Ahmed 18
FD Example (Cont.)
• A possible value for table SP:
S# CITY P# QTY
SP
S1 London P1 100
• Check whether these FDs hold: S1 London P2 100
S2 Paris P1 200
– {S#} -> {CITY} S2 Paris P2 200
– {S#, P#} -> {QTY} S3 Paris P2 300
S4 London P2 400
– {S#, P#} -> {CITY, QTY} S4 London P4 400
– {S#, P#} -> {S#, P#, CITY, QTY}S4 London P5 400
• Manufacturing_DatePartID, Pname,
Pprice
Identify FDs and give reasons
Dr. Ejaz Ahmed 20
Functional Dependency