I'm sorry for the basic question but I'm struggling a bit with 3NF. This is the table I'm talking about:
User (Nickname, Email, Password, Name, Surname, DocumentId, Telephone, Avatar, Biography)
I think this table is not normalized in the third normal form because there are several functional dependencies due to the two candidate keys (DocumentId and Telephone):
- DocumentId -> Nickname, Email, Password, Name, Surname, Telephone, Avatar, Biography
- Telephone -> Nickname, Email, Password, Name, Surname, DocumentId, Avatar, Biography
Am I wrong? I am not so sure about the correctness of these functional dependencies. Are they correct? Also, how can I normalize this table?
Edit:
To specify, 2 users can't have the same DocumentId, the same Email and the same telephone number.
So this should be another functional dependency:
- Email -> Nickname, Password, Name, Surname, DocumentId, Avatar, Biography, Telephone