If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Help with this ERD : kepp track of who change what.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-08, 10:27
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
Help with this ERD : kepp track of who change what.

Hi,
i'm new with DB design.
I have to design an Entity-Relationship Diagram for my application in order to handle tha changes made to an entity.

The original application deal with DOCUMENT and CONTACT entities and the SEND_TO relationship.



------------ (M) (N) ----------
|DOCUMENT |-------< SEND_TO > -------|CONTACT|
------------ ----------

Now STATE and USER entities need to be added to the project.
A document can have one or more STATE during its lifecycle.
I need to keep track of which user change the document's state.

How can i model this in the ERD ?
thanks.
Reply With Quote
  #2 (permalink)  
Old 02-14-08, 07:21
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
Do you think a ternary relationship DOCUMENT-USER-STATE could be the solution ?
Reply With Quote
  #3 (permalink)  
Old 02-14-08, 08:54
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
I'd create copies of each table to maintain historical records and keep them updated with triggers.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On