문제

I have had a crack at normalizing some data for a database would appreciate if anyone body could tell me if its correctly normalized. Here is the structure:

enter image description here

I have used a composite key(Incident ID and Action code) as a certain incident would not require two actions of the same type. Is there a better way of doing this? I thought about just adding an Action ID auto number but is this OK?

Thanks if anyone can help.

도움이 되었습니까?

해결책

Personally I would use ActionID as my key - it really depends on what you'll be doing with the data and the volume.

I could see it being useful to get a list of incidents where you'd taken out a particular Action, this would be easier to get with an index on just Action Code, also having a composite key could well result in page splits on the clustered index which obviously has an overhead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top