May 8, 2007 at 9:05 am
Hello,
I have a problem where the business rules changed for my application. My application is basically a help desk type app. I have a main table that tracks the case information, eg:
tblCap
-------
capID
fk_customerID
dateOpened
dateClosed
partner
fk_buID
etc...
A case can now have multiple business units assigned to it and multiple business units can be considered primary (as in primary root cause). Eg:
tblBU
------
buID
businessUnit
What is the best method to now track multiple business units assigned to each case and further track whether that business unit is a primary failing business unit? Whether or not a business unit is primary just needs some kind of distinction, so I assume a bit flag can be used, just not sure how to set this up to make sense.
Thanks for any help you can provide!
May 8, 2007 at 9:17 am
David
Create a junction table that references the cases and the business units tables:
tblBUCap
---------
capID
buID
IsPrimary
John
May 8, 2007 at 9:24 am
In addition
Add an IDENTITY column (I'm sure I'll get flamed for this ) so that data can be tracked in insertion order (if required), or use a datetime column (or both!)
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply