Reputation: 6999
I was wondering, is the following relation in 3rd normal form ?
USER (username:String PrimaryKey,
userType:String,
fname:String,
lname:String,
dateOfBirth:TimeStamp)
and userType can be one of the following values
Thanks,
Upvotes: 1
Views: 238
Reputation: 7253
I don't see any transitive dependencies between non-key attributes... so it's 3NF compliant.
Upvotes: 1
Reputation: 11138
but of course be very careful when considering the user name as the primary key of the user table. It usually does not work...
Upvotes: 0
Reputation: 18408
If the FD's that apply in your database are
{username} -> {userType, fname, lname, dateOfBirth}
then your design is even in 5NF.
Upvotes: 3