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 > newbie question.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-26-10, 14:24
Pukisoft Pukisoft is offline
Registered User
 
Join Date: Jul 2008
Posts: 7
Question newbie question.

I know this may sound like a ridiculous question, as I somehow doubt it's even worth asking.

But as I always like to be better safe than sorry, I'll ask anyway.

Is it always mandatory that all entities in an entity relation diagram be related?
I ask this because I'm modeling a database for a web Application I'm going to start to develop, and I have an entity-relation diagram with a log table and a related log-detail table, both of which aren't related to any other tables in the database.

Originally I just placed them in the bottom of the diagram with the remaining related tables above them, but a coworker of mine just told me I have to relate them all, and It just doesn't feel right, as there aren't any other tables in the design that seem to be fit to be related with the log table.

Opinions?
Reply With Quote
  #2 (permalink)  
Old 07-26-10, 14:39
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
An Entity Relationship diagram shows the Entities that you're schema has and the relationships between those Entities. I've never seen anything that specifies any limit on the number of relationships, zero or more has always been acceptable.

At least based on that claim, your co-worker doesn't understand what ER diagrams are or how they are used.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 07-26-10, 15:06
Pukisoft Pukisoft is offline
Registered User
 
Join Date: Jul 2008
Posts: 7
Thanks, that clears it up for me. this situation is weird for me because I've never come across any rule that dictates what he's telling me. I guess I'm gonna have to talk to him to resolve the issue.

in any case, thank you.
Reply With Quote
  #4 (permalink)  
Old 07-26-10, 15:56
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Your log tables are likely related to auditing, and as such may not be integrated into your application data table schema.
Your co-worker has evidently read enough about database design to sound convincing, but not enough to actually understand what he is saying.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #5 (permalink)  
Old 07-26-10, 16:13
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
+1 to Pat and blinman's points.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
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