HELP needed with an ERD

Reply

Join Date: Dec 2007
Posts: 65
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

HELP needed with an ERD

 
0
  #1
Nov 23rd, 2008
How would I draw an ERD for a situation like this:

professors can teach the same course in several semesters, and each offering must be recorded.

If I know that:

Professorss can have an SSN and courses can have a courseid.

Any helpful suggestions are welcome.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 305
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 25
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz

Re: HELP needed with an ERD

 
0
  #2
Nov 23rd, 2008
We'd be happy to help, but we don't want to do all the work for you. Can you show us what you have so far?

To help you out, four entities should be sufficient to track the information in your post.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,142
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 531
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: HELP needed with an ERD

 
0
  #3
Nov 23rd, 2008
Here is your data dictionary:

Staff
    SSN (Primary Key)
    Other staff data

Course
    CourseID (Primary Key)
    Other Course Data

TaughtCourse (this is important, you need a link table)
   CourseID (Foreign Key)
   SSN (Foreign Key
   Other details (e.g when, where, notes)

The link table is needed as you cant basically have a many to many relationship between staff and courses. It just doesnt work like that.

In my example, one Staff can have many TaughtCourse (one staff member can teach many groups) and each Course may be taught many times to many different groups. However, one group can only be a part of oe course.

So its a ONE staff <- may teach -> MANY TaughtCourse
and ONE ToughtCourse < - can have -> MANY Course
Last edited by jbennet; Nov 23rd, 2008 at 1:12 pm.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 65
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

Re: HELP needed with an ERD

 
0
  #4
Nov 26th, 2008
Thanks jbennet, I had something similar in mind.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 65
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

Re: HELP needed with an ERD

 
0
  #5
Nov 26th, 2008
Another thing, how would I encorporate an employee(business staff) processing a transaction to a situation where you have a client purchasing an item from a member the company's production staff?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC