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 > EER models

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-07, 09:59
cobijones cobijones is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
EER models

Hi, I two questions regarding EER models that I would be grateful if anyone could help me out with.

I'm designing an EER diagram at the moment, I was wondering if for example I had data stored on someone that contained name, age and id number would name , age and id number just be attributes of the entity "stored data" or could I use Generalisation/Specialisation where "stored data" would be the top entity and name age and id number would be disjoint constraints?

Secondly, is it acceptable to draw seperate diagrams for the Generalisation/Specialisation part fo a databse model from the entity/relationship part or should all the parts of the EER model be drawn together?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-23-07, 11:02
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
what to the initials EER stand for?

"stored data" is not an entity

if the attributes are name, age, and id number, i'm guessing the entity is Someones

so each instance of the Someones entity would be an actual someone
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 11-23-07, 11:35
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Funny - I thoughts you didn't likes pluralised entities. Or is that another big cat?
Reply With Quote
  #4 (permalink)  
Old 11-23-07, 11:46
cobijones cobijones is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
EER stands for extended entity relationship model. Its a model that incorporates all the elements of ER models along with gerneralisation/specialisation.

Thanks for the replies. The example I gave was just made up so sorry if it was a bad example - but are name, age and id just attributes then? Can I link attributes?
Reply With Quote
  #5 (permalink)  
Old 11-23-07, 11:47
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by pootle flump
Funny - I thoughts you didn't likes pluralised entities. Or is that another big cat?
me? no, i always tell people to use plural entity/table names

it is to remind you that you are dealing with a set of rows (e.g. select from employees)

placing emphasis on the container (e.g. select from tblemp) is old school process-oriented thinking

plural names help you remember that you are specifying values to qualify all desired rows at once, rather than the repetitive read-a-record-and-do-something-with-it mindset
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 11-23-07, 11:49
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by cobijones
Can I link attributes?
you sure can

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 11-23-07, 11:50
cobijones cobijones is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
so when drawing the actual models by hand - do I just link attributes with a line?
Reply With Quote
  #8 (permalink)  
Old 11-23-07, 11:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
yes, and of course attributes like name, age, and id number would be "related" inside the same box
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #9 (permalink)  
Old 11-23-07, 12:06
cobijones cobijones is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
Thanks for the answers I appreciate it. One last question - can I add generalisation/specialisation to attributes. Say for example I have sex as an attribute can I then add disjoint constraints of male/female to the attribute? And if so would I draw these in the same fashion as I would draw generalisation/specialisation constraints to an entity?
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