tbl DeptItem
pk DeptId
pk ItemId
fk ScoreId
tbl ScoreHistory
pk ScoreId
?? DeptId
?? ItemId
TimeStamp
fk UserId
I need to keep a history of all scores that a deptItem has. My problem is I cant seem to build a form to show what the lastest score is but add a new score.
Is the structure correct to start with, or would I be better to go back to removing the scoreId from both tables and having composite key in Score History of DeptId,ItemId,TimeStamp?
eg.
tbl DeptItem
pk DeptId
pk ItemId
tbl ScoreHistory
pk DeptId
pk ItemId
pk TimeStamp
fk UserId
any help would be greatly appreciated.
pk DeptId
pk ItemId
fk ScoreId
tbl ScoreHistory
pk ScoreId
?? DeptId
?? ItemId
TimeStamp
fk UserId
I need to keep a history of all scores that a deptItem has. My problem is I cant seem to build a form to show what the lastest score is but add a new score.
Is the structure correct to start with, or would I be better to go back to removing the scoreId from both tables and having composite key in Score History of DeptId,ItemId,TimeStamp?
eg.
tbl DeptItem
pk DeptId
pk ItemId
tbl ScoreHistory
pk DeptId
pk ItemId
pk TimeStamp
fk UserId
any help would be greatly appreciated.