Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top