Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > General > Database Concepts & Design > Desperate ERD Help!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-07, 05:41
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
Desperate ERD Help!

Hi


Basically Im having trouble with an Entity Relationship Diagram (ERD), for an assignment. The ERD is based on a simple scenario, I have attempted it a few times and the lecturer says its not right.

Last edited by JIM1974 : 10-21-07 at 11:13.
Reply With Quote
  #2 (permalink)  
Old 10-21-07, 07:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 13,556
what's wrong with the part in red, in your own words?

where are your constraints? (primary keys and foreign keys)
__________________
r937.com | rudy.ca

pre-order my book Simply SQL from Amazon
Reply With Quote
  #3 (permalink)  
Old 10-21-07, 08:26
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
HI There

Thanks for taking a look.

Below is a link to a updated erd with all the attributes and primary/foreign keys.

Last edited by JIM1974 : 10-21-07 at 11:13.
Reply With Quote
  #4 (permalink)  
Old 10-21-07, 08:39
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 13,556
Quote:
Originally Posted by JIM1974
... she was not happy with the skilled vehicle drivers entity
neither am i

in words, what does one instance of this entity represent? what is that pk made of? it looks like it might be an auto_increment, and generally speaking, you should never have an auto_increment for a relationship table

see what you can do if that table were completely eliminated
__________________
r937.com | rudy.ca

pre-order my book Simply SQL from Amazon
Reply With Quote
  #5 (permalink)  
Old 10-21-07, 09:02
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
Hi Again

sorry about the basic diagram dont have access to proper ERD design tool at home.

Last edited by JIM1974 : 10-21-07 at 11:14.
Reply With Quote
  #6 (permalink)  
Old 10-21-07, 09:09
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
One would think that colleges could sure come up with better real life examples to model. ..driver skill?? I personally don't see where that ties into an order.
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
  #7 (permalink)  
Old 10-21-07, 09:19
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
fjm1967

Do you have any sudgestions?
Basically i just want a quick solution so i can get the schema finished and build for oracle database and get the assisgnment out the way.

Last edited by JIM1974 : 10-21-07 at 09:24.
Reply With Quote
  #8 (permalink)  
Old 10-21-07, 09:26
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
I can give you my opinions about your model but r937 is the one you want to listen to.

Do you have the option of totally removing the skill entity or did your instructor tell you that you had to have it? I don't understand what driver skill has to do with an order.
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
  #9 (permalink)  
Old 10-21-07, 09:34
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
Basically the instructor gave the scenario and the entitys



Then we have to come up with a working model

But i would be happy for any input you could offer me.

I do appriciate time given.

Last edited by JIM1974 : 10-21-07 at 11:14.
Reply With Quote
  #10 (permalink)  
Old 10-21-07, 09:36
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
Ok, I will give you my take on how it should be based on what your instructor said. brb.
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
  #11 (permalink)  
Old 10-21-07, 09:50
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
This is how I would model it. I would remove the three entities you have for the special vehicles. You can use the vehicle type column in the vehicle entity to track that.

Quote:
particular skills are not necessarily associated with a vehicle, however; the drivers’ skills information is used merely as a guide to driver allocation at present.

Because of this, I simply associated the chauffer's skill set with the driver. I am assuming that the "skilled vehicle driver" entity is only a record of the skill levels that a driver can have.
Attached Thumbnails
desperate-erd-help-export.jpg  
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
  #12 (permalink)  
Old 10-21-07, 09:59
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 13,556
Quote:
Originally Posted by JIM1974
Basically i just want a quick solution
you are not going to get that here

we do not do homework assignments

however, we will help you do yours by asking you questions

you still have to do all the work, though
__________________
r937.com | rudy.ca

pre-order my book Simply SQL from Amazon
Reply With Quote
  #13 (permalink)  
Old 10-21-07, 10:03
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
oops.. I missed that..
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
  #14 (permalink)  
Old 10-21-07, 10:04
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
Cheers fjm1967

I understand your solution to the scenario.

Does anybody else agree or disagree with fjm1967 opionion's to my model or anythink else they can add.

r937 what do you think?
Reply With Quote
  #15 (permalink)  
Old 10-21-07, 10:10
JIM1974 JIM1974 is offline
Registered User
 
Join Date: Oct 2007
Posts: 10
Cool thats fine with me.
Ive been at it for 3 weeks and i was only really asking for asistance, I learn through examples and this is the first one ive attempted.
In my oppion data modeling is not clear cut. Its more on the oppions of erd designer. That is basically what i was asking for.

Last edited by JIM1974 : 10-21-07 at 10:14.
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

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