Hi there!
I'm confused about functional dependency and the third normal form.
Therefor I have the following questions:
The Password-entity in the attached jpeg-image. Can one say that
the password is functional dependent on the username? And also
in the other direction; the username is functional dependent on
the password?
I believe it depends on whether how many usernames and passwords I
want the employees to have. In other words, if I make the decission to
only allow one username and one password to that username, there will
be a functional dependency...otherwise not....
Is the above (my assumptions) correct?
In other words I believe that I have to replace the password-table
with two new ones one for username and one for passwords to reach
the third normal form...
Is the above correct?
In the litterature I have found the following definiation of functional-
dependeny:
Let r be a relation (they mean table right?) and let X and Y be arbitary
subsets of attributes of r (they mean columns right?). Then we say that
Y is functional dependent on X if and only if each X value in r has associated
with it precisely one Y value in R. In other words, whenever two tuples (they mean rows right?)
of r agree on their X value, they also agree on their Y value.
That was the definition...and I think the password table in the attached file
seems to agree with it. I mean if I decide to only give the employees
one password and one username, two tuples will agree on username if they agree on password.
Please tell me if my reasoning is correct
Lots of thanks
/Marcus