My data consists of questions and answers. It also shows what the version number is of the answer and shows which persons changed which Answer. Its possible that some questions have the same answer.
Table looks like this:
bold is primary/composite key
0NF:
(questionID, question, AnswerID, answer,RG{versionNr, user, date}
1NF:
(questionID, question, AnswerID, answer)
(questionID, AnswerID, VersionNr, user, date)
2NF/3NF:
Q(questionID, question, AnswerID)
Ans(AnswerID, answer)
Version(questionID, AnswerID, VersionNr, user, date)
My question is whether I should remove questionID from Version, because the versionNr, date and user gives information about the Answer and Not the question.
Table looks like this:
Code:
questionID Question answerID Answer VersionNr User date
1 Who is....? 14 W.H. Smith 1.0 ...@test.com 1/1/14
1.1 ...@test.com 3/8/14
2 What is...? 28 3% 1.0 ...@test.com 1/2/14
bold is primary/composite key
0NF:
(questionID, question, AnswerID, answer,RG{versionNr, user, date}
1NF:
(questionID, question, AnswerID, answer)
(questionID, AnswerID, VersionNr, user, date)
2NF/3NF:
Q(questionID, question, AnswerID)
Ans(AnswerID, answer)
Version(questionID, AnswerID, VersionNr, user, date)
My question is whether I should remove questionID from Version, because the versionNr, date and user gives information about the Answer and Not the question.