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 > Desperate ERD Help!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-07, 04: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 10:13.
Reply With Quote
  #2 (permalink)  
Old 10-21-07, 06:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 10-21-07, 07: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 10:13.
Reply With Quote
  #4 (permalink)  
Old 10-21-07, 07:39
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 10-21-07, 08: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 10:14.
Reply With Quote
  #6 (permalink)  
Old 10-21-07, 08:09
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
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.
Reply With Quote
  #7 (permalink)  
Old 10-21-07, 08: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 08:24.
Reply With Quote
  #8 (permalink)  
Old 10-21-07, 08:26
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
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.
Reply With Quote
  #9 (permalink)  
Old 10-21-07, 08: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 10:14.
Reply With Quote
  #10 (permalink)  
Old 10-21-07, 08:36
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
Ok, I will give you my take on how it should be based on what your instructor said. brb.
Reply With Quote
  #11 (permalink)  
Old 10-21-07, 08:50
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
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  
Reply With Quote
  #12 (permalink)  
Old 10-21-07, 08:59
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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
please visit Simply SQL and buy my book
Reply With Quote
  #13 (permalink)  
Old 10-21-07, 09:03
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
oops.. I missed that..
Reply With Quote
  #14 (permalink)  
Old 10-21-07, 09: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, 09: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 09: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

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