Is there a conflict between 1-1 relationships and 3NF?
For example, take the following table:
Customer Table:
CustomerID (Primary Key)
CustomerFirstname
CustomerLastname
CustomerLoginID
CustomerLoginPW
Now let's assume that Each CustomerID
corresponds to only one CustomerLoginID
and vice versa. So this is a 1-1 relationship.
It is stated that usually, 1-1 relationships are already normalised, and do not need to be normalised.
However, CustomerLoginPW
can be determined by the CustomerID
, but it can also be determined by the CustomerLoginID
. This breaks 3NF, i.e a transitive dependency.
Therefore, should the table above be separated into two tables, with the CustomerLoginID
and CustomerLoginPW
put into a separate table, even though the relationship is a 1-1 ?
Leaving it in one table as so many suggest with a 1-1 relationship seems to break 3NF?