T
containing two attributes A
and B
, A→B
, or A
functionally determines B
if
B
) is functionally dependent on attribute (A
) if each value in column (A
) determines one and only one value in column (B
); or
r1
and r2
in a table T
, if r1(A)=r2(A)
then r1(B)=r2(B)
.
Graphical representation of functional dependencey is given on the right: |
An Example
The previous single table designed is given on the right again: |
|
FDs are based on the intent of the database designers. From the table content, the table’s FDs are given on the right (note that this is unusual because it is reverse thinking), where ↛ means “does not functionally determine.” |
|